summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-04-30 23:10:49 +0200
committerCarl Hetherington <cth@carlh.net>2022-04-30 23:10:49 +0200
commit7d3b018675efdb8b1a4eeaf05c73f997977cb2e9 (patch)
treedf6a155c6fe633d252b53e795f7b78b506d24298
parentbbb958c524fe1abe32984a6cd9c6616789f9e94b (diff)
Fix build on Centos 7.
-rw-r--r--wscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/wscript b/wscript
index 591a10e54..e30727c8c 100644
--- a/wscript
+++ b/wscript
@@ -128,7 +128,9 @@ def configure(conf):
conf.env.append_value('CXXFLAGS', ['-Wno-cast-function-type'])
# Most gccs still give these warnings from boost::optional
conf.env.append_value('CXXFLAGS', ['-Wno-maybe-uninitialized'])
- conf.env.append_value('CXXFLAGS', ['-Wsuggest-override'])
+ if int(gcc[0]) > 4:
+ # gcc 4.8.5 on Centos 7 does not have this warning
+ conf.env.append_value('CXXFLAGS', ['-Wsuggest-override'])
if conf.options.enable_debug:
conf.env.append_value('CXXFLAGS', ['-g', '-DDCPOMATIC_DEBUG', '-fno-omit-frame-pointer'])