From: Avi Kivity <
a...@scylladb.com>
Committer: Avi Kivity <
a...@scylladb.com>
Branch: next
build: disable warnings that cause false-positive errors with gcc 12
gcc 12 generates some incorrect warnings (that we treat as errors).
Silence them so we can build.
---
diff --git a/configure.py b/configure.py
--- a/configure.py
+++ b/configure.py
@@ -1328,6 +1328,11 @@ def find_headers(repodir, excluded_dirs):
'-Wno-array-bounds',
'-Wno-nonnull',
'-Wno-catch-value',
+ '-Wno-stringop-overread', # false positives with gcc 12
+ '-Wno-uninitialized', # false positives with gcc 12,
+ '-Wno-missing-attributes', # something in seastar's memory.cc, TBD,
+ '-Wno-use-after-free', # false positives with gcc 12
+ '-Wno-dangling-pointer', # false positives with gcc 12
]
warnings = [w