Code Review
/
tldk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
f6603a8
)
fix implicit-fallthrough error
36/18836/3
author
Jianfeng Tan
<henry.tjf@antfin.com>
Mon, 20 May 2019 14:07:34 +0000
(22:07 +0800)
committer
Konstantin Ananyev
<konstantin.ananyev@intel.com>
Thu, 23 May 2019 11:58:23 +0000
(11:58 +0000)
On gcc 7.0+, we could encounter this error.
Change-Id: I7399197b91ce0c8b3106c08b573469c15c2075b9
Signed-off-by: Jianfeng Tan <henry.tjf@antfin.com>
lib/libtle_dring/tle_dring.h
patch
|
blob
|
history
diff --git
a/lib/libtle_dring/tle_dring.h
b/lib/libtle_dring/tle_dring.h
index
9d3788a
..
6aac22a
100644
(file)
--- 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];
}