aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2018-02-16 23:07:11 +0200
committerPetr Mladek <[email protected]>2018-04-11 11:19:13 +0200
commit7e6bd6f3dcf913460a0a0ae7f260a8280001dd80 (patch)
treeb57c61d67bc5c3469857c15dc65c4d4821602a79
parent91efafb1dd8f471177a3dddb4841d75d3df1cc46 (diff)
lib/vsprintf: Mark expected switch fall-through
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]>
-rw-r--r--lib/vsprintf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 97be2d07297a..38a71df48d48 100644
--- 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 '%':