From 0ba81d7db377e37e9e50ce243e173e1bcfa33e9a Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 25 Aug 2023 13:05:19 +0200 Subject: libpayload: Fix clang fallthrough warning Clang does not recognize comments to indicate falltrough is intended behavior. Signed-off-by: Arthur Heymans Change-Id: Idcf7a24fc763b80863902702172b4ea950e132b8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77431 Reviewed-by: Martin L Roth Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas Reviewed-by: Paul Menzel --- payloads/libpayload/curses/PDCurses/pdcurses/scanw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'payloads/libpayload/curses/PDCurses/pdcurses/scanw.c') diff --git a/payloads/libpayload/curses/PDCurses/pdcurses/scanw.c b/payloads/libpayload/curses/PDCurses/pdcurses/scanw.c index d1fd908dab..97eaf70b4f 100644 --- a/payloads/libpayload/curses/PDCurses/pdcurses/scanw.c +++ b/payloads/libpayload/curses/PDCurses/pdcurses/scanw.c @@ -274,7 +274,7 @@ static int _pdc_vsscanf(const char *buf, const char *fmt, va_list arg_ptr) NEXT(c); goto string; } - /* fall through */ + __fallthrough; default: if (fmt[1] == '-' && fmt[2] && f < (unsigned char)fmt[2]) -- cgit v1.2.3