From fff20212afe2c83af90dbec39d112a31d34b6658 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Mon, 15 Mar 2021 14:56:16 +0100 Subject: Use the fallthrough statement in switch loops Clang does not seem to work with 'fall through' in comments. Change-Id: Idcbe373be33ef7247548f856bfaba7ceb7f749b5 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/51498 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Tim Wawrzynczak --- src/console/vtxprintf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/console') diff --git a/src/console/vtxprintf.c b/src/console/vtxprintf.c index 2a5143070dba..f8055dadccd5 100644 --- a/src/console/vtxprintf.c +++ b/src/console/vtxprintf.c @@ -244,7 +244,7 @@ repeat: case 'X': flags |= LARGE; - /* fall through */ + __fallthrough; case 'x': base = 16; break; @@ -252,6 +252,7 @@ repeat: case 'd': case 'i': flags |= SIGN; + __fallthrough; case 'u': break; -- cgit v1.2.3