[PATCH 16/18] cmd: pmic: annotate switch/case fallthrough
Tom Rini
trini at konsulko.com
Mon Mar 31 18:09:00 CEST 2025
On Thu, Mar 27, 2025 at 03:33:11PM +0000, Andre Przywara wrote:
> 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 at arm.com>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250331/43e2e928/attachment.sig>
More information about the U-Boot
mailing list