From: Heinrich Schuchardt Date: Sat, 1 Apr 2023 06:13:42 +0000 (+0200) Subject: lib: missing fallthrough comment in vsnprintf_internal() X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=9ee32a7876f4372fd0f5515a27b2c148a8e8a19c;p=u-boot.git lib: missing fallthrough comment in vsnprintf_internal() When a case statement intentionally falls through we should add a comment. Cf. -Wimplicit-fallthrough Signed-off-by: Heinrich Schuchardt --- diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 2d13e68b57..e87503e41a 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -674,6 +674,7 @@ repeat: case 'x': flags |= SMALL; + /* fallthrough */ case 'X': base = 16; break; @@ -681,8 +682,10 @@ repeat: case 'd': if (fmt[1] == 'E') flags |= ERRSTR; + /* fallthrough */ case 'i': flags |= SIGN; + /* fallthrough */ case 'u': break;