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/drivers/i8042/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'payloads/libpayload/drivers/i8042') diff --git a/payloads/libpayload/drivers/i8042/keyboard.c b/payloads/libpayload/drivers/i8042/keyboard.c index 952f5f1456..2453392ecf 100644 --- a/payloads/libpayload/drivers/i8042/keyboard.c +++ b/payloads/libpayload/drivers/i8042/keyboard.c @@ -578,7 +578,7 @@ int keyboard_getchar(void) /* vulcan nerve pinch */ if ((modifier & KB_MOD_ALT) && reset_handler) reset_handler(); - /* fallthrough */ + __fallthrough; default: ret = 0; } -- cgit v1.2.3