summaryrefslogtreecommitdiff
path: root/kern/fmt.c
diff options
context:
space:
mode:
authorRemy Noel <mocramis@gmail.com>2017-10-15 18:03:46 +0200
committerRichard Braun <rbraun@sceen.net>2017-10-15 20:20:11 +0200
commitfb05220dc2a157374f5b88ca376424b1b7abf20e (patch)
treefcd1bbdd9fd1671045be9fe735bd8d5e00d483ea /kern/fmt.c
parent6e9cfb79f32143dc7184a1355e35a435a571c650 (diff)
kern/fmt: silence implicit fallthrough warnings
Diffstat (limited to 'kern/fmt.c')
-rw-r--r--kern/fmt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kern/fmt.c b/kern/fmt.c
index 03ababe..1ba77cb 100644
--- a/kern/fmt.c
+++ b/kern/fmt.c
@@ -326,6 +326,7 @@ fmt_sprintf_state_consume_modifier(struct fmt_sprintf_state *state)
break;
case 'z':
state->modifier = FMT_MODIFIER_SIZE;
+ __fallthrough;
case 't':
state->modifier = FMT_MODIFIER_PTRDIFF;
break;
@@ -347,6 +348,7 @@ fmt_sprintf_state_consume_specifier(struct fmt_sprintf_state *state)
case 'd':
case 'i':
state->flags |= FMT_FORMAT_CONV_SIGNED;
+ __fallthrough;
case 'u':
state->base = 10;
state->specifier = FMT_SPECIFIER_INT;
@@ -358,8 +360,10 @@ fmt_sprintf_state_consume_specifier(struct fmt_sprintf_state *state)
case 'p':
state->flags |= FMT_FORMAT_ALT_FORM;
state->modifier = FMT_MODIFIER_PTR;
+ __fallthrough;
case 'x':
state->flags |= FMT_FORMAT_LOWER;
+ __fallthrough;
case 'X':
state->base = 16;
state->specifier = FMT_SPECIFIER_INT;
@@ -1011,6 +1015,7 @@ fmt_sscanf_state_consume_specifier(struct fmt_sscanf_state *state)
break;
case 'd':
state->flags |= FMT_FORMAT_CONV_SIGNED;
+ __fallthrough;
case 'u':
state->base = 10;
state->specifier = FMT_SPECIFIER_INT;
@@ -1021,6 +1026,7 @@ fmt_sscanf_state_consume_specifier(struct fmt_sscanf_state *state)
break;
case 'p':
state->modifier = FMT_MODIFIER_PTR;
+ __fallthrough;
case 'x':
case 'X':
state->base = 16;