Skip to content

Commit ab06500

Browse files
asaezpercodebot
authored andcommitted
build: move stringop-overflow to warning only
1 parent 2b7cd2b commit ab06500

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ if (ENABLE_WERROR)
7676
if (HAS_MAYBE_UNINITIALIZED)
7777
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=maybe-uninitialized")
7878
endif()
79+
check_cxx_compiler_flag("-Wstringop-overflow" HAS_STRINGOP_OVERFLOW)
80+
if (HAS_STRINGOP_OVERFLOW)
81+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=stringop-overflow")
82+
endif()
7983
endif()
8084
endif ()
8185

0 commit comments

Comments
 (0)