From 66d566201f832974671828cc417721d7ff3c94b2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 17 Nov 2019 17:26:01 +0100 Subject: [PATCH] Try to do -Wno-deprecated-copy only on Linux. --- wscript | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wscript b/wscript index 04ba1c3a4..1d6124e0d 100644 --- a/wscript +++ b/wscript @@ -108,8 +108,6 @@ def configure(conf): '-Wno-deprecated-declarations', '-Wno-ignored-qualifiers', '-Wno-parentheses', - # Remove lots of warnings from wxWidgets with newer gcc - '-Wno-deprecated-copy', '-D_FILE_OFFSET_BITS=64']) if conf.options.force_cpp11: @@ -179,7 +177,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']) + conf.env.append_value('CXXFLAGS', ['-Wlogical-op', '-Wno-deprecated-copy']) if not conf.env.DISABLE_GUI: conf.check_cfg(package='gtk+-2.0', args='--cflags --libs', uselib_store='GTK', mandatory=True) -- 2.30.2