Skip to content

Commit acc92fa

Browse files
authored
cmake: silent mismatched-new-delete on gcc (#2046)
1 parent eba880f commit acc92fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/compiler_warnings.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ elseif((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MAT
4242
add_compile_options(-Wno-error=maybe-uninitialized)
4343
endif()
4444

45+
add_compile_options(-Wno-error=mismatched-new-delete)
46+
4547
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES ".*Clang$")
4648
add_compile_options(-Wconversion) # too much noise in gcc
4749

0 commit comments

Comments
 (0)