"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd: pmic: annotate switch/case fallthrough

The argument parsing code in the pmic command uses an implicit switch/case
fallthrough to handle the common part of having one or two arguments.

Add our "fallthrough;" statement-like macro before the second branch in
the parsing code, to avoid a warning when GCC's -Wimplicit-fallthrough
warning option is enabled.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Tom Rini <trini@konsulko.com>

authored by

Andre Przywara and committed by
Tom Rini
d29a90c8 3f61113c

+1
+1
cmd/pmic.c
··· 34 34 printf("Can't get PMIC: %s!\n", name); 35 35 return failure(ret); 36 36 } 37 + fallthrough; 37 38 case 1: 38 39 if (!currdev) { 39 40 printf("PMIC device is not set!\n\n");