aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-06-11 12:07:07 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2021-06-11 12:07:07 +0200
commit4eeefb8d4593b6b32131dff3aa001fa9feb42f07 (patch)
treea21e516ce2e6ddca7fb4ec1d381b50bb3f269c9f /src
parent67eb63df506ed0e3873209e38403b08a8612297f (diff)
downloadrneovim-4eeefb8d4593b6b32131dff3aa001fa9feb42f07.tar.gz
rneovim-4eeefb8d4593b6b32131dff3aa001fa9feb42f07.tar.bz2
rneovim-4eeefb8d4593b6b32131dff3aa001fa9feb42f07.zip
macros: add a dummy statement to allow FALLTHROUGH in an empty case.
Diffstat (limited to 'src')
-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