From: Carl Hetherington Date: Sat, 30 Apr 2022 21:10:49 +0000 (+0200) Subject: Fix build on Centos 7. X-Git-Tag: v2.16.10~1 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=7d3b018675efdb8b1a4eeaf05c73f997977cb2e9 Fix build on Centos 7. --- 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'])