From b68a460c3ef877d95c0939b5ee02928f35e9f263 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 7 May 2021 18:15:39 +0200 Subject: Fix build on old GCC. --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index 9cce0c79..74d0951a 100644 --- a/wscript +++ b/wscript @@ -92,7 +92,7 @@ def configure(conf): if conf.env.TARGET_OSX: conf.env.append_value('CXXFLAGS', ['-Wno-unused-result', '-Wno-unused-parameter', '-Wno-unused-local-typedef']) conf.env.append_value('LINKFLAGS', '-headerpad_max_install_names') - else: + elif int(gcc[0]) >= 4 and int(gcc[1]) > 1: conf.env.append_value('CXXFLAGS', ['-Wsuggest-override']) # Disable libxml++ deprecation warnings for now -- cgit v1.2.3