summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-11-17 21:41:46 +0100
committerCarl Hetherington <cth@carlh.net>2019-11-17 21:41:46 +0100
commitea0073fae742eb6fe56216ca19cf2242c4deca3f (patch)
treea935b2d8b6c72d556e7ece9cd4ff06a3e4f6c6e7
parentf643313344fa408b371e2e6d793b67ffad6c183c (diff)
Don't use -Wno-deprecated-copy on older GCC.v2.15.34
-rw-r--r--wscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/wscript b/wscript
index 9b18f6013..eff2b0438 100644
--- a/wscript
+++ b/wscript
@@ -116,6 +116,8 @@ def configure(conf):
gcc = conf.env['CC_VERSION']
if int(gcc[0]) >= 4 and int(gcc[1]) > 1:
conf.env.append_value('CXXFLAGS', ['-Wno-unused-result'])
+ if int(gcc[0]) >= 9:
+ conf.env.append_value('CXXFLAGS', ['-Wno-deprecated-copy'])
have_c11 = int(gcc[0]) >= 4 and int(gcc[1]) >= 8 and int(gcc[2]) >= 1
if conf.options.enable_debug:
@@ -186,7 +188,7 @@ def configure(conf):
conf.env.append_value('CXXFLAGS', '-DLINUX_LOCALE_PREFIX="%s/share/locale"' % conf.env['INSTALL_PREFIX'])
conf.env.append_value('CXXFLAGS', '-DLINUX_SHARE_PREFIX="%s/share/dcpomatic2"' % conf.env['INSTALL_PREFIX'])
conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_LINUX')
- conf.env.append_value('CXXFLAGS', ['-Wlogical-op', '-Wcast-align', '-Wno-deprecated-copy'])
+ conf.env.append_value('CXXFLAGS', ['-Wlogical-op', '-Wcast-align'])
if not conf.env.DISABLE_GUI:
conf.check_cfg(package='gtk+-2.0', args='--cflags --libs', uselib_store='GTK', mandatory=True)