summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-09-23 14:36:10 +0200
committerTor Egge <Tor.Egge@online.no>2022-09-23 14:36:10 +0200
commit3d3dda413a6e8b1f495d01f03cf3f1a99f3084b2 (patch)
tree566917bb676491fa567607f4697ac28fa95215ee /document
parente3a7b619b4bedee9ff126085f17de43688547f90 (diff)
Remove unused variables.
Diffstat (limited to 'document')
-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 11a62fbb9c8..ef486757ea7 100644
--- a/document/src/vespa/document/select/CMakeLists.txt
+++ b/document/src/vespa/document/select/CMakeLists.txt
@@ -48,4 +48,6 @@ vespa_add_library(document_select OBJECT
set_source_files_properties(${FLEX_DocSelLexer_OUTPUTS} PROPERTIES COMPILE_FLAGS -Wno-register)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set_source_files_properties(${BISON_DocSelParser_OUTPUTS} PROPERTIES COMPILE_FLAGS -Wno-noexcept)
+elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 15.0)
+ set_source_files_properties(${BISON_DocSelParser_OUTPUTS} PROPERTIES COMPILE_OPTIONS "-Wno-unused-but-set-variable")
endif()