From d5fc4efbf6d88e21050103dfc058467a719fa53e Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Fri, 18 Dec 2020 12:48:15 -0800 Subject: [PATCH] Turn off GCC bounds checking for the tests where we intentionally test out of bounds --- tests/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index d3e7a5c..63e306b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -132,7 +132,8 @@ else() $<$,6>>: -Wduplicated-cond # duplicated if-else conditions -Wmisleading-indentation - -Wnull-dereference + -Wno-null-dereference + -Wno-array-bounds $<$: # no support for [[maybe_unused]] -Wno-unused-variable > @@ -246,7 +247,8 @@ else() $<$,6>>: -Wduplicated-cond # duplicated if-else conditions -Wmisleading-indentation - -Wnull-dereference + -Wno-null-dereference + -Wno-array-bounds > $<$,7>>: -Wduplicated-branches # identical if-else branches