diff options
author | James McCoy <jamessan@jamessan.com> | 2020-06-19 22:37:50 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2020-08-23 21:18:34 -0400 |
commit | 75813af54267803bb3269b81f58d742200fccb41 (patch) | |
tree | 60938ced46690f0907ef45b1ed1867ad8ca08ee6 /src | |
parent | 37fa8d3f44acfc0c0af935f7649d6362545c05dc (diff) | |
download | rneovim-75813af54267803bb3269b81f58d742200fccb41.tar.gz rneovim-75813af54267803bb3269b81f58d742200fccb41.tar.bz2 rneovim-75813af54267803bb3269b81f58d742200fccb41.zip |
Disable -Wimplicit-fallthrough for tree_sitter/
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index c7258dde12..7b4438b896 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -189,7 +189,11 @@ if(NOT MSVC) endif() # tree-sitter: inlined external project, we don't maintain it. #10124 - set_source_files_properties(${TREESITTER_SOURCES} PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS} -Wno-conversion -Wno-pedantic -Wno-shadow -Wno-missing-prototypes -Wno-unused-variable") + set(TS_FLAGS "-Wno-conversion -Wno-pedantic -Wno-shadow -Wno-missing-prototypes -Wno-unused-variable") + if(HAVE_WIMPLICIT_FALLTHROUGH_FLAG) + set(TS_FLAGS "${TS_FLAGS} -Wno-implicit-fallthrough") + endif() + set_source_files_properties(${TREESITTER_SOURCES} PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS} ${TS_FLAGS}") endif() if(NOT "${MIN_LOG_LEVEL}" MATCHES "^$") |