[PATCH 2/2] vsprintf: add explicit fallthrough
Jules Maselbas
jmaselbas at zdiv.net
Tue Mar 25 08:53:27 PDT 2025
Signed-off-by: Jules Maselbas <jmaselbas at zdiv.net>
---
lib/vsprintf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 0656ba3620..32429dd76c 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -775,6 +775,7 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
case 'x':
flags |= SMALL;
+ fallthrough;
case 'X':
base = 16;
break;
@@ -782,6 +783,7 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
case 'd':
case 'i':
flags |= SIGN;
+ fallthrough;
case 'u':
break;
--
2.48.1
More information about the barebox
mailing list