projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91efafb
)
lib/vsprintf: Mark expected switch fall-through
author
Andy Shevchenko
<
[email protected]
>
Fri, 16 Feb 2018 21:07:11 +0000
(23:07 +0200)
committer
Petr Mladek
<
[email protected]
>
Wed, 11 Apr 2018 09:19:13 +0000
(11:19 +0200)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Link:
http://lkml.kernel.org/r/
[email protected]
To: "Tobin C . Harding" <
[email protected]
>
To:
[email protected]
To: Joe Perches <
[email protected]
>
To:
[email protected]
To: Andrew Morton <
[email protected]
>
Signed-off-by: Andy Shevchenko <
[email protected]
>
Signed-off-by: Petr Mladek <
[email protected]
>
lib/vsprintf.c
patch
|
blob
|
history
diff --git
a/lib/vsprintf.c
b/lib/vsprintf.c
index 97be2d07297a70ff1fa841f2c401af2bf4985a35..38a71df48d4893c9561a0b76ff00c2ae26ff4af1 100644
(file)
--- a/
lib/vsprintf.c
+++ b/
lib/vsprintf.c
@@
-2092,6
+2092,7
@@
qualifier:
case 'x':
spec->flags |= SMALL;
+ /* fall through */
case 'X':
spec->base = 16;
@@
-3046,8
+3047,10
@@
int vsscanf(const char *buf, const char *fmt, va_list args)
break;
case 'i':
base = 0;
+ /* fall through */
case 'd':
is_sign = true;
+ /* fall through */
case 'u':
break;
case '%':