Rename fallthrough to zfs_fallthrough

Unfortunately macOS has obj-C keyword "fallthrough" in the OS headers.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Damian Szuberski <szuberskidamian@gmail.com>
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
Closes #13097
This commit is contained in:
Jorgen Lundman
2022-02-16 01:58:59 +09:00
committed by GitHub
parent ae07fc1393
commit 9a70e97fe1
29 changed files with 44 additions and 44 deletions
+3 -3
View File
@@ -30,11 +30,11 @@
#define ____cacheline_aligned
#define __NORETURN __attribute__((__noreturn__))
#if !defined(fallthrough) && !defined(_LIBCPP_VERSION)
#if !defined(zfs_fallthrough) && !defined(_LIBCPP_VERSION)
#if defined(HAVE_IMPLICIT_FALLTHROUGH)
#define fallthrough __attribute__((__fallthrough__))
#define zfs_fallthrough __attribute__((__fallthrough__))
#else
#define fallthrough ((void)0)
#define zfs_fallthrough ((void)0)
#endif
#endif