libpayload: Enable -Wimplicit-fallthrough
Add comments to intentional fall throughs and enable the warning. Change-Id: I93e071c4fb139fa6e9cd8a1bfb5800f5f4eac50b Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34457 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
committed by
Martin Roth
parent
ae317695e3
commit
5f7b1164c5
@ -585,6 +585,7 @@ static int printf_core(const char *fmt, struct printf_spec *ps, va_list ap)
|
||||
/* Integer values */
|
||||
case 'P': /* pointer */
|
||||
flags |= __PRINTF_FLAG_BIGCHARS;
|
||||
/* fall through */
|
||||
case 'p':
|
||||
flags |= __PRINTF_FLAG_PREFIX;
|
||||
base = 16;
|
||||
@ -599,10 +600,12 @@ static int printf_core(const char *fmt, struct printf_spec *ps, va_list ap)
|
||||
case 'd':
|
||||
case 'i':
|
||||
flags |= __PRINTF_FLAG_SIGNED;
|
||||
break;
|
||||
case 'u':
|
||||
break;
|
||||
case 'X':
|
||||
flags |= __PRINTF_FLAG_BIGCHARS;
|
||||
/* fall through */
|
||||
case 'x':
|
||||
base = 16;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user