Remove gcc 4.1 check and hide some more warnings.
authorCarl Hetherington <cth@carlh.net>
Sat, 23 Jan 2021 08:37:01 +0000 (09:37 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 23 Jan 2021 08:37:01 +0000 (09:37 +0100)
wscript

diff --git a/wscript b/wscript
index c1536752a3e210fdc72313f653614dac2294ea99..5c9277f0a72f05a3a156948c46a93cd7d769dae6 100644 (file)
--- a/wscript
+++ b/wscript
@@ -40,8 +40,7 @@ def configure(conf):
 
     if conf.env.TARGET_LINUX:
         gcc = conf.env['CC_VERSION']
-        if int(gcc[0]) >= 4 and int(gcc[1]) > 1:
-            conf.env.append_value('CXXFLAGS', ['-Wno-unused-result'])
+        conf.env.append_value('CXXFLAGS', ['-Wno-unused-result', '-Wno-deprecated-copy', '-Wno-class-memaccess'])
 
     conf.check_cfg(package='openssl', args='--cflags --libs', uselib_store='OPENSSL', mandatory=True)