Expand use of -Wno-maybe-uninitialized.
authorCarl Hetherington <cth@carlh.net>
Tue, 28 Jul 2020 09:23:08 +0000 (11:23 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 28 Jul 2020 09:23:08 +0000 (11:23 +0200)
wscript

diff --git a/wscript b/wscript
index f874758dde6d87d36267809965f643eef0d4b313..f958b49fa003912255e95b6d9f35d4d55a615ccf 100644 (file)
--- a/wscript
+++ b/wscript
@@ -122,10 +122,10 @@ def configure(conf):
         if int(gcc[0]) >= 8:
             # I tried and failed to ignore these with _Pragma
             conf.env.append_value('CXXFLAGS', ['-Wno-cast-function-type'])
         if int(gcc[0]) >= 8:
             # I tried and failed to ignore these with _Pragma
             conf.env.append_value('CXXFLAGS', ['-Wno-cast-function-type'])
-        elif int(gcc[0]) == 7:
-            # There appears to be a GCC bug which lingered from major versions 5--7 and which
+        elif int(gcc[0]) >= 5 and int(gcc[0]) <= 8
+            # There appears to be a GCC bug which lingered from major versions 5--8 and which
             # flags up these warnings all over the place in boost::optional.
             # flags up these warnings all over the place in boost::optional.
-            # These seems to be the only practical way to hide it
+            # This seems to be the only practical way to hide it.
             conf.env.append_value('CXXFLAGS', ['-Wno-maybe-uninitialized'])
         have_c11 = int(gcc[0]) >= 4 and int(gcc[1]) >= 8 and int(gcc[2]) >= 1
     else:
             conf.env.append_value('CXXFLAGS', ['-Wno-maybe-uninitialized'])
         have_c11 = int(gcc[0]) >= 4 and int(gcc[1]) >= 8 and int(gcc[2]) >= 1
     else: