Turn off GCC bounds checking for the tests where we intentionally test out of bounds

This commit is contained in:
Herb Sutter 2020-12-18 12:48:15 -08:00
parent 25c0dee6e3
commit d5fc4efbf6

View File

@ -132,7 +132,8 @@ else()
$<$<NOT:$<VERSION_LESS:$<CXX_COMPILER_VERSION>,6>>: $<$<NOT:$<VERSION_LESS:$<CXX_COMPILER_VERSION>,6>>:
-Wduplicated-cond # duplicated if-else conditions -Wduplicated-cond # duplicated if-else conditions
-Wmisleading-indentation -Wmisleading-indentation
-Wnull-dereference -Wno-null-dereference
-Wno-array-bounds
$<$<EQUAL:${GSL_CXX_STANDARD},14>: # no support for [[maybe_unused]] $<$<EQUAL:${GSL_CXX_STANDARD},14>: # no support for [[maybe_unused]]
-Wno-unused-variable -Wno-unused-variable
> >
@ -246,7 +247,8 @@ else()
$<$<NOT:$<VERSION_LESS:$<CXX_COMPILER_VERSION>,6>>: $<$<NOT:$<VERSION_LESS:$<CXX_COMPILER_VERSION>,6>>:
-Wduplicated-cond # duplicated if-else conditions -Wduplicated-cond # duplicated if-else conditions
-Wmisleading-indentation -Wmisleading-indentation
-Wnull-dereference -Wno-null-dereference
-Wno-array-bounds
> >
$<$<NOT:$<VERSION_LESS:$<CXX_COMPILER_VERSION>,7>>: $<$<NOT:$<VERSION_LESS:$<CXX_COMPILER_VERSION>,7>>:
-Wduplicated-branches # identical if-else branches -Wduplicated-branches # identical if-else branches