Thomas Weißschuh 079ec6a3cf tools/nolibc: compiler: add macro __nolibc_fallthrough
Recent version of GCC and clang gained -Wimplicit-fallthrough,
warning about implicit fall-through between switch labels.
As nolibc does not control the compilation flags, this can trigger
warnings for when built by the user.
Make use of the "fallthrough" attribute to explicitly annotate the
expected fall-throughs and silence the warning.

Link: https://lore.kernel.org/r/20240930-nolibc-fallthrough-v2-1-2e8d10fe3430@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
2024-10-07 21:56:18 +02:00
..
2024-10-07 21:56:08 +02:00
2024-07-29 07:52:57 +02:00
2024-07-29 07:52:57 +02:00
2023-03-20 08:45:21 -07:00
2023-10-12 21:13:52 +02:00
2024-07-29 07:52:57 +02:00
2024-04-14 20:28:54 +02:00