[QUEUED scylla next] build: disable warnings that cause false-positive errors with gcc 12

34 views
Skip to first unread message

Commit Bot

<bot@cloudius-systems.com>
unread,
Apr 19, 2022, 3:39:08 AM4/19/22
to scylladb-dev@googlegroups.com, Avi Kivity
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

Commit Bot

<bot@cloudius-systems.com>
unread,
Apr 19, 2022, 8:56:46 AM4/19/22
to scylladb-dev@googlegroups.com, Avi Kivity
From: Avi Kivity <a...@scylladb.com>
Committer: Avi Kivity <a...@scylladb.com>
Branch: master
Reply all
Reply to author
Forward
0 new messages