In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Signed-off-by: Andy Shevchenko <[email protected]> --- lib/vsprintf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 20c0ab9faba5..bf0c45788100 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -2094,6 +2094,7 @@ int format_decode(const char *fmt, struct printf_spec *spec) case 'x': spec->flags |= SMALL; + /* fall through */ case 'X': spec->base = 16; @@ -3048,8 +3049,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 '%': -- 2.15.1

