We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dd6428 commit 480e334Copy full SHA for 480e334
CMakeLists.txt
@@ -80,6 +80,12 @@ if (ENABLE_WERROR)
80
if (HAS_STRINGOP_OVERFLOW)
81
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=stringop-overflow")
82
endif()
83
+ if (ASSERT_LEVEL STREQUAL "MINIMAL")
84
+ check_cxx_compiler_flag("-Warray-bounds" HAS_ARRAY_BOUNDS)
85
+ if (HAS_ARRAY_BOUNDS)
86
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=array-bounds")
87
+ endif()
88
89
90
endif ()
91
0 commit comments