aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-06-11 15:19:58 +0200
committerGitHub <noreply@github.com>2021-06-11 15:19:58 +0200
commit74140e7642a04de247f441f74ef33d45cd850385 (patch)
treea21e516ce2e6ddca7fb4ec1d381b50bb3f269c9f
parent67eb63df506ed0e3873209e38403b08a8612297f (diff)
parent4eeefb8d4593b6b32131dff3aa001fa9feb42f07 (diff)
downloadrneovim-74140e7642a04de247f441f74ef33d45cd850385.tar.gz
rneovim-74140e7642a04de247f441f74ef33d45cd850385.tar.bz2
rneovim-74140e7642a04de247f441f74ef33d45cd850385.zip
Merge pull request #14775 from bfredl/gcc11
macros: add a dummy statement to allow FALLTHROUGH in an empty case.
-rw-r--r--src/nvim/macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h
index eb9357d027..e718254fb9 100644
--- a/src/nvim/macros.h
+++ b/src/nvim/macros.h
@@ -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