mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 09:42:22 +02:00
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 <heinrich.schuchardt@canonical.com>
This commit is contained in:
committed by
Tom Rini
parent
686e9ef605
commit
9ee32a7876
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user