From: Carl Hetherington Date: Mon, 23 May 2016 15:16:55 +0000 (+0100) Subject: Hack to fix build on gcc 4.1. X-Git-Tag: v2.8.5~46^2~4 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=ea460149b3e87a11d3ed4b5c2d48aa980c0735d2;p=dcpomatic.git Hack to fix build on gcc 4.1. --- diff --git a/wscript b/wscript index 78454565f..93a9fc493 100644 --- a/wscript +++ b/wscript @@ -83,6 +83,10 @@ def configure(conf): '-Wno-deprecated-declarations', '-D_FILE_OFFSET_BITS=64']) + gcc = conf.env['CC_VERSION'] + if int(gcc[0]) >= 4 and int(gcc[1]) > 1: + conf.env.append_value('CXXFLAGS', ['-Wno-unused-result']) + if conf.options.enable_debug: conf.env.append_value('CXXFLAGS', ['-g', '-DDCPOMATIC_DEBUG', '-fno-omit-frame-pointer']) else: