cmd: pmic: annotate switch/case fallthrough
authorAndre Przywara <andre.przywara@arm.com>
Thu, 27 Mar 2025 15:33:11 +0000 (15:33 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 8 Apr 2025 22:23:51 +0000 (16:23 -0600)
commitd29a90c8ce4a2e27f502f5ac5a051f7bcfd66e11
treeaeb5d9d113feb54d7acce875ff19eb98b7b67ba5
parent3f61113c276ffe52380cec159b47e6024249ee2d
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>
cmd/pmic.c