Skip to content

Commit 81b7608

Browse files
committed
compileroptions.cmake: disabled -Wlifetime-safety-*-tu-suggestions warnings for now
1 parent 1cd71d9 commit 81b7608

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cmake/compileroptions.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
176176
# | ^
177177
add_compile_options_safe(-Wno-shadow-header)
178178

179+
# TODO: enable these
180+
add_compile_options_safe(-Wno-lifetime-safety-intra-tu-suggestions)
181+
add_compile_options_safe(-Wno-lifetime-safety-cross-tu-suggestions)
182+
179183
if(ENABLE_COVERAGE OR ENABLE_COVERAGE_XML)
180184
message(FATAL_ERROR "Do not use clang to generate code coverage. Use GCC instead.")
181185
endif()

0 commit comments

Comments
 (0)