Avoid gcc-12+ pragma
@@ -232,12 +232,7 @@ string_id
SharedStringRepo::resolve(vespalib::stringref str) {
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
-#pragma GCC diagnostic ignored "-Warray-bounds"
-#endif
uint64_t full_hash = XXH3_64bits(str.data(), str.size());
-#pragma GCC diagnostic pop
uint32_t part = full_hash & PART_MASK;
uint32_t local_hash = full_hash >> PART_BITS;
uint32_t local_idx = _partitions[part].resolve(AltKey{str, local_hash});
