diff options
author | 2019-05-20 22:07:34 +0800 | |
---|---|---|
committer | 2019-05-23 11:58:23 +0000 | |
commit | b419e591ac30af4b35830d56648b9ae4a6aee7f9 (patch) | |
tree | e5d37329fa3ce2ab12513fd6afe8a643159d2ee5 /lib | |
parent | f6603a8bef7990be4bb719aed2d1e82b31e5cdd5 (diff) |
fix implicit-fallthrough error
On gcc 7.0+, we could encounter this error.
Change-Id: I7399197b91ce0c8b3106c08b573469c15c2075b9
Signed-off-by: Jianfeng Tan <henry.tjf@antfin.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libtle_dring/tle_dring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libtle_dring/tle_dring.h b/lib/libtle_dring/tle_dring.h index 9d3788a..6aac22a 100644 --- a/lib/libtle_dring/tle_dring.h +++ b/lib/libtle_dring/tle_dring.h @@ -107,8 +107,10 @@ __tle_dring_copy_objs(const void *dst[], const void * const src[], uint32_t num) switch (num % 4) { case 3: dst[i + 2] = src[i + 2]; + /* fallthrough */ case 2: dst[i + 1] = src[i + 1]; + /* fallthrough */ case 1: dst[i] = src[i]; } |