aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJianfeng Tan <henry.tjf@antfin.com>2019-05-20 22:07:34 +0800
committerKonstantin Ananyev <konstantin.ananyev@intel.com>2019-05-23 11:58:23 +0000
commitb419e591ac30af4b35830d56648b9ae4a6aee7f9 (patch)
treee5d37329fa3ce2ab12513fd6afe8a643159d2ee5
parentf6603a8bef7990be4bb719aed2d1e82b31e5cdd5 (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>
-rw-r--r--lib/libtle_dring/tle_dring.h2
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];
}