summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-06-17 21:14:28 +0200
committerGitHub <noreply@github.com>2023-06-17 21:14:28 +0200
commit12a42ea33873b814f3b626ff78b8619f5eef377a (patch)
treee05a0b11c7b51f37a0134490cca6b9b1e472d8b3
parentdf0e1cee605dc4efe9f5ae8d667a66bc4eccfbb6 (diff)
parent16abc586fb46e7dfd9d4b9062adc1ff69c695ba2 (diff)
Merge pull request #27468 from vespa-engine/toregge/disable-compiler-warning-for-bison-generated-document-selection-parser-when-using-appleclang
Disable compiler warning about unused but set variable when
-rw-r--r--document/src/vespa/document/select/CMakeLists.txt2
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()