summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-10-22 00:53:23 +0200
committerTor Egge <Tor.Egge@online.no>2022-10-22 00:53:23 +0200
commit49f54b924a599acfacbc9c14c6c4f026c4c7395d (patch)
tree0f6118352711e017b7eb66f29c39e88b2c904e03 /document
parent466f40901aff16b2d479a57cd9019771f79c8504 (diff)
Fix default settings for using clang on CentOS Stream 8.
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 ef486757ea7..5dd274fdb91 100644
--- a/document/src/vespa/document/select/CMakeLists.txt
+++ b/document/src/vespa/document/select/CMakeLists.txt
@@ -50,4 +50,6 @@ 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")
+elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+ set_source_files_properties(${BISON_DocSelParser_OUTPUTS} PROPERTIES COMPILE_OPTIONS "-Wno-deprecated-copy-with-user-provided-copy")
endif()