summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-05-07 18:15:39 +0200
committerCarl Hetherington <cth@carlh.net>2021-05-07 18:15:39 +0200
commitb68a460c3ef877d95c0939b5ee02928f35e9f263 (patch)
treeaef164601340acbcf3382616611ee4b3a7b65367 /wscript
parent981cfb7c0050a3ff3b5d01dc787226f6e9d7ff91 (diff)
Fix build on old GCC.
Diffstat (limited to 'wscript')
-rw-r--r--wscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/wscript b/wscript
index 9cce0c79..74d0951a 100644
--- a/wscript
+++ b/wscript
@@ -92,7 +92,7 @@ def configure(conf):
if conf.env.TARGET_OSX:
conf.env.append_value('CXXFLAGS', ['-Wno-unused-result', '-Wno-unused-parameter', '-Wno-unused-local-typedef'])
conf.env.append_value('LINKFLAGS', '-headerpad_max_install_names')
- else:
+ elif int(gcc[0]) >= 4 and int(gcc[1]) > 1:
conf.env.append_value('CXXFLAGS', ['-Wsuggest-override'])
# Disable libxml++ deprecation warnings for now