macros: add a dummy statement to allow FALLTHROUGH in an empty case.

This commit is contained in:
Björn Linse
2021-06-11 12:07:07 +02:00
parent 67eb63df50
commit 4eeefb8d45

View File

@@ -169,7 +169,7 @@
#if NVIM_HAS_ATTRIBUTE(fallthrough) \
&& (!defined(__apple_build_version__) || __apple_build_version__ >= 7000000)
# define FALLTHROUGH __attribute__((fallthrough))
# define FALLTHROUGH {} __attribute__((fallthrough))
#else
# define FALLTHROUGH
#endif