diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-02-26 22:43:22 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-02-26 22:43:22 +0100 |
commit | e26a432ba767681861b495eab57013c1fd166395 (patch) | |
tree | 432e851fc3c2b776d5bc0d5afaa7acef9feb013d | |
parent | 53a89f39683a68ff0c8a9650eb7edb1b37768d22 (diff) |
Remove array bounds warning (searchlib, take 2)
-rw-r--r-- | searchlib/src/tests/grouping/sketch_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/tests/grouping/sketch_test.cpp b/searchlib/src/tests/grouping/sketch_test.cpp index 2b5756b1950..10f5cbaa8ef 100644 --- a/searchlib/src/tests/grouping/sketch_test.cpp +++ b/searchlib/src/tests/grouping/sketch_test.cpp @@ -27,7 +27,7 @@ TEST("require that normal sketch is initialized") { template <typename NormalSketch> void checkBucketValue(NormalSketch &sketch, size_t bucket, uint32_t value) { #pragma GCC diagnostic push -#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 11 +#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 11 || __GNUC__ <= 12) #pragma GCC diagnostic ignored "-Warray-bounds" #endif EXPECT_EQUAL(value, static_cast<size_t>(sketch.bucket[bucket])); |