aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt2023-04-01 08:13:42 +0200
committerTom Rini2023-04-06 19:10:08 -0400
commit9ee32a7876f4372fd0f5515a27b2c148a8e8a19c (patch)
tree140a5faf4078a43f9371c3ea9ead88b59dc6bcd3 /lib
parent686e9ef60598da2e75730c0861b5b2d6ac7f2493 (diff)
lib: missing fallthrough comment in vsnprintf_internal()
When a case statement intentionally falls through we should add a comment. Cf. -Wimplicit-fallthrough Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/vsprintf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 2d13e68b579..e87503e41ad 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -674,6 +674,7 @@ repeat:
case 'x':
flags |= SMALL;
+ /* fallthrough */
case 'X':
base = 16;
break;
@@ -681,8 +682,10 @@ repeat:
case 'd':
if (fmt[1] == 'E')
flags |= ERRSTR;
+ /* fallthrough */
case 'i':
flags |= SIGN;
+ /* fallthrough */
case 'u':
break;