summaryrefslogtreecommitdiff
path: root/payloads/libpayload/libc/printf.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-08-25 13:05:19 +0200
committerElyes Haouas <ehaouas@noos.fr>2023-08-28 02:12:25 +0000
commit0ba81d7db377e37e9e50ce243e173e1bcfa33e9a (patch)
treefb57b21b29bcedc417b8445d66da410f957f225b /payloads/libpayload/libc/printf.c
parentd7173943843a1a68b13b681f923cf45557881e05 (diff)
libpayload: Fix clang fallthrough warning
Clang does not recognize comments to indicate falltrough is intended behavior. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: Idcf7a24fc763b80863902702172b4ea950e132b8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77431 Reviewed-by: Martin L Roth <gaumless@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Diffstat (limited to 'payloads/libpayload/libc/printf.c')
-rw-r--r--payloads/libpayload/libc/printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/libc/printf.c b/payloads/libpayload/libc/printf.c
index feab4b5f22..3edf166b98 100644
--- a/payloads/libpayload/libc/printf.c
+++ b/payloads/libpayload/libc/printf.c
@@ -584,7 +584,7 @@ static int printf_core(const char *fmt, struct printf_spec *ps, va_list ap)
/* Integer values */
case 'P': /* pointer */
flags |= __PRINTF_FLAG_BIGCHARS;
- /* fall through */
+ __fallthrough;
case 'p':
flags |= __PRINTF_FLAG_PREFIX;
base = 16;
@@ -604,7 +604,7 @@ static int printf_core(const char *fmt, struct printf_spec *ps, va_list ap)
break;
case 'X':
flags |= __PRINTF_FLAG_BIGCHARS;
- /* fall through */
+ __fallthrough;
case 'x':
base = 16;
break;