aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/funcs.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2020-06-19 22:18:30 -0400
committerJames McCoy <jamessan@jamessan.com>2020-08-23 20:59:39 -0400
commit37fa8d3f44acfc0c0af935f7649d6362545c05dc (patch)
tree7d077e8efbc4cf6054362ddd934b21b79f7dd5bf /src/nvim/eval/funcs.c
parent8c49e3d50959e24dadd688f56a18f104bd5fd934 (diff)
downloadrneovim-37fa8d3f44acfc0c0af935f7649d6362545c05dc.tar.gz
rneovim-37fa8d3f44acfc0c0af935f7649d6362545c05dc.tar.bz2
rneovim-37fa8d3f44acfc0c0af935f7649d6362545c05dc.zip
Disable -Wimplicit-fallthrough for funcs.generated.h
This is code generated by gperf, so there's nothing we can do about it. The code does have /*FALLTHROUGH*/ comments but clang doesn't recognize them.
Diffstat (limited to 'src/nvim/eval/funcs.c')
-rw-r--r--src/nvim/eval/funcs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c
index 18e514b9a0..d95d3f64f5 100644
--- a/src/nvim/eval/funcs.c
+++ b/src/nvim/eval/funcs.c
@@ -32,6 +32,7 @@
#include "nvim/indent.h"
#include "nvim/indent_c.h"
#include "nvim/lua/executor.h"
+#include "nvim/macros.h"
#include "nvim/mark.h"
#include "nvim/math.h"
#include "nvim/memline.h"
@@ -86,8 +87,10 @@ KHASH_MAP_INIT_STR(functions, VimLFuncDef)
#endif
PRAGMA_DIAG_PUSH_IGNORE_MISSING_PROTOTYPES
+PRAGMA_DIAG_PUSH_IGNORE_IMPLICIT_FALLTHROUGH
#include "funcs.generated.h"
PRAGMA_DIAG_POP
+PRAGMA_DIAG_POP
#endif