diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-01-29 20:41:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-29 20:41:22 +0100 |
commit | d8015aaa3ec26432d6d56d26e3001dedc75688f6 (patch) | |
tree | f9627a77670b3d217c9a1aee7c4667fcaf37dfcb | |
parent | 1998595df63050d779e8f5e52b22962245fe1329 (diff) | |
parent | 1ec8fa0deb250ad1bfab5f0472fd353582ebd251 (diff) |
Merge pull request #25785 from vespa-engine/toregge/suppress-array-bounds-warning-on-gcc-13-for-shared-string-repov8.117.54
Suppress array bounds warnings on gcc 13 for shared string repo.
-rw-r--r-- | vespalib/src/vespa/vespalib/util/shared_string_repo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/util/shared_string_repo.h b/vespalib/src/vespa/vespalib/util/shared_string_repo.h index 1479220f1b4..0b090d7fff1 100644 --- a/vespalib/src/vespa/vespalib/util/shared_string_repo.h +++ b/vespalib/src/vespa/vespalib/util/shared_string_repo.h @@ -216,7 +216,7 @@ private: uint32_t direct_id = try_make_direct_id(str); if (direct_id >= ID_BIAS) { #pragma GCC diagnostic push -#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 12 +#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ >= 12 #pragma GCC diagnostic ignored "-Warray-bounds" #endif uint64_t full_hash = XXH3_64bits(str.data(), str.size()); |