use proper fallthrough annotations

In some cases in the generic code, we were already using switch/case
fallthrough annotations comments, though in a way which might not be
understood by most compilers.

Replace two non-standard /* no break */ comments with our fallthrough;
statement-like macro, to make this visible to the compiler.
Also use this macro in place of an /* Fall through */ comment, to be
more consistent.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Andre Przywara 2025-03-27 15:32:59 +00:00 committed by Tom Rini
parent 2938eb1e02
commit 26b2482f12
3 changed files with 3 additions and 3 deletions

View file

@ -484,7 +484,7 @@ int cmd_get_data_size(const char *arg, int default_size)
case 'q':
if (MEM_SUPPORT_64BIT_DATA)
return 8;
/* no break */
fallthrough;
default:
return CMD_DATA_SIZE_ERR;
}