diff options
| author | Benjamin Berg <benjamin.berg@intel.com> | 2025-09-24 16:20:53 +0200 |
|---|---|---|
| committer | Thomas Weißschuh <linux@weissschuh.net> | 2025-10-29 16:29:15 +0100 |
| commit | 2cb6cc8361da803ede847ed1ca8afeb3af6df6ff (patch) | |
| tree | 06a534819f16c028193e41258553fe55da6f9cdb /tools/include/nolibc/compiler.h | |
| parent | fbd1b7f6b322a63b21ebbf00c732a17bb8bdb5d4 (diff) | |
tools/nolibc: use __fallthrough__ rather than fallthrough
Use the version of the attribute with underscores to avoid issues if
fallthrough has been defined by another header file already.
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'tools/include/nolibc/compiler.h')
| -rw-r--r-- | tools/include/nolibc/compiler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/include/nolibc/compiler.h b/tools/include/nolibc/compiler.h index 369cfb5a0e78..87090bbc53e0 100644 --- a/tools/include/nolibc/compiler.h +++ b/tools/include/nolibc/compiler.h @@ -41,8 +41,8 @@ # define __no_stack_protector __attribute__((__optimize__("-fno-stack-protector"))) #endif /* __nolibc_has_attribute(no_stack_protector) */ -#if __nolibc_has_attribute(fallthrough) -# define __nolibc_fallthrough do { } while (0); __attribute__((fallthrough)) +#if __nolibc_has_attribute(__fallthrough__) +# define __nolibc_fallthrough do { } while (0); __attribute__((__fallthrough__)) #else # define __nolibc_fallthrough do { } while (0) #endif /* __nolibc_has_attribute(fallthrough) */ |