diff options
author | Tor Egge <Tor.Egge@online.no> | 2023-01-29 18:04:01 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2023-01-29 18:04:01 +0100 |
commit | 8952b59a4e818d3088fcfabaceaec7f2f7a38c70 (patch) | |
tree | 61fd72e595f15504cfbf53d0ae3fae83411a36d6 /document/src | |
parent | ef4ef1ede9979a8bf6c581e3cb79d577cf501f75 (diff) |
Disable deprecated-copy-with-user-provided-copy warning option when compiling
source files generated by bison with clang.
Diffstat (limited to 'document/src')
-rw-r--r-- | document/src/vespa/document/select/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/document/src/vespa/document/select/CMakeLists.txt b/document/src/vespa/document/select/CMakeLists.txt index 5dd274fdb91..f74e4a6abc9 100644 --- a/document/src/vespa/document/select/CMakeLists.txt +++ b/document/src/vespa/document/select/CMakeLists.txt @@ -49,7 +49,7 @@ set_source_files_properties(${FLEX_DocSelLexer_OUTPUTS} PROPERTIES COMPILE_FLAGS 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") + 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") endif() |