* [PATCH] lib: add explicit fallthrough in strtoull_suffix
@ 2025-03-25 15:54 Jules Maselbas
2025-03-27 7:41 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Jules Maselbas @ 2025-03-25 15:54 UTC (permalink / raw)
To: barebox; +Cc: Jules Maselbas
Signed-off-by: Jules Maselbas <jmaselbas@zdiv.net>
---
lib/misc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/misc.c b/lib/misc.c
index 1cb2a6b9b5..7cb7c6224a 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -37,12 +37,15 @@ unsigned long long strtoull_suffix(const char *str, char **endp, int base)
switch (*end) {
case 'G':
val *= 1024;
+ fallthrough;
case 'M':
val *= 1024;
+ fallthrough;
case 'k':
case 'K':
val *= 1024;
end++;
+ break;
default:
break;
}
--
2.48.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] lib: add explicit fallthrough in strtoull_suffix
2025-03-25 15:54 [PATCH] lib: add explicit fallthrough in strtoull_suffix Jules Maselbas
@ 2025-03-27 7:41 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-03-27 7:41 UTC (permalink / raw)
To: barebox, Jules Maselbas
On Tue, 25 Mar 2025 16:54:13 +0100, Jules Maselbas wrote:
>
Applied, thanks!
[1/1] lib: add explicit fallthrough in strtoull_suffix
https://git.pengutronix.de/cgit/barebox/commit/?id=695626e7f267 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-27 7:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-25 15:54 [PATCH] lib: add explicit fallthrough in strtoull_suffix Jules Maselbas
2025-03-27 7:41 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox