fastboot: annotate switch/case fallthrough case

The fastboot command handling uses an implicit switch/case fallthrough
when receiving the OEM_CONSOLE command, but when this command is not
enabled in Kconfig, to report this command as unknown.

Add our "fallthrough;" statement-like macro before the default branch in
the fastboot 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: Mattijs Korpershoek <mkorpershoek@baylibre.com>
This commit is contained in:
Andre Przywara
2025-03-27 15:33:01 +00:00
committed by Tom Rini
parent 26b2482f12
commit 06b1ebfe52

View File

@@ -186,6 +186,7 @@ void fastboot_multiresponse(int cmd, char *response)
} }
break; break;
} }
fallthrough;
default: default:
fastboot_fail("Unknown multiresponse command", response); fastboot_fail("Unknown multiresponse command", response);
break; break;