diff options
author | Tor Egge <Tor.Egge@online.no> | 2023-06-17 17:00:14 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2023-06-17 17:00:14 +0200 |
commit | 16abc586fb46e7dfd9d4b9062adc1ff69c695ba2 (patch) | |
tree | 5c9d7f0fe1ad19195519abdd519cdb04c9f02a3f /document | |
parent | 056b844af08214c90ec5226afac58824a828f255 (diff) |
Disable compiler warning about unused but set variable when
compiling bison generated document selection parser with AppleClang.
Diffstat (limited to 'document')
-rw-r--r-- | document/src/vespa/document/select/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/document/src/vespa/document/select/CMakeLists.txt b/document/src/vespa/document/select/CMakeLists.txt index f74e4a6abc9..ca41f19aaf0 100644 --- a/document/src/vespa/document/select/CMakeLists.txt +++ b/document/src/vespa/document/select/CMakeLists.txt @@ -52,4 +52,6 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VER set_source_files_properties(${BISON_DocSelParser_OUTPUTS} PROPERTIES COMPILE_OPTIONS "-Wno-unused-but-set-variable;-Wno-deprecated-copy-with-user-provided-copy") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") set_source_files_properties(${BISON_DocSelParser_OUTPUTS} PROPERTIES COMPILE_OPTIONS "-Wno-deprecated-copy-with-user-provided-copy") +elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") + set_source_files_properties(${BISON_DocSelParser_OUTPUTS} PROPERTIES COMPILE_OPTIONS "-Wno-unused-but-set-variable") endif() |