mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
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>
This commit is contained in:
parent
fbd1b7f6b3
commit
2cb6cc8361
|
|
@ -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) */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user