Try to remove some more default -Wno switches.
authorCarl Hetherington <cth@carlh.net>
Sun, 26 Jul 2020 18:04:52 +0000 (20:04 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 26 Jul 2020 19:30:59 +0000 (21:30 +0200)
wscript

diff --git a/wscript b/wscript
index 5ca164d51b6f1a12e75eef273e5df9d8e7c8df15..b0faa848393571959fbde0eff1c65d8168107765 100644 (file)
--- a/wscript
+++ b/wscript
@@ -119,13 +119,9 @@ def configure(conf):
 
     if conf.env['CXX_NAME'] == 'gcc':
         gcc = conf.env['CC_VERSION']
-        if int(gcc[0]) >= 4 and int(gcc[1]) > 1:
-            conf.env.append_value('CXXFLAGS', ['-Wno-unused-result'])
         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]) >= 9:
-            conf.env.append_value('CXXFLAGS', ['-Wno-deprecated-copy'])
         have_c11 = int(gcc[0]) >= 4 and int(gcc[1]) >= 8 and int(gcc[2]) >= 1
     else:
         have_c11 = False