From 7129ddfa674607ec4bc894b1abc77e013ebfa15b Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 17 Apr 2022 14:25:01 +0300 Subject: [PATCH] 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. --- configure.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.py b/configure.py index cf292b3105..8401425d47 100755 --- a/configure.py +++ b/configure.py @@ -1328,6 +1328,11 @@ warnings = [ '-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