Merge pull request #14775 from bfredl/gcc11

macros: add a dummy statement to allow FALLTHROUGH in an empty case.
This commit is contained in:
Björn Linse
2021-06-11 15:19:58 +02:00
committed by GitHub

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