use proper fallthrough annotations
authorAndre Przywara <andre.przywara@arm.com>
Thu, 27 Mar 2025 15:32:59 +0000 (15:32 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 8 Apr 2025 22:23:51 +0000 (16:23 -0600)
commit26b2482f124ba831e40a44ea0cb093203fd8d747
treed0e2c9972007848148cef93ad14e0f15a4c3ce33
parent2938eb1e022d7e1de23d89f941bc07b0776a2549
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>
common/command.c
lib/tiny-printf.c
net/net.c