summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-04-30 23:10:49 +0200
committerCarl Hetherington <cth@carlh.net>2022-05-01 23:45:55 +0200
commit1ba0d87bdfba2674170f334117cc6377755a5c29 (patch)
tree212df3cab0c0297a7d924915ed85c446865786ce
parenta3598552e8c9d42afc925d6f633b8c84b86a7c76 (diff)
Fix build on Centos 7.
-rw-r--r--wscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/wscript b/wscript
index 267e45a5c..122a907c2 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'])