From 1483459c447649be981a650aacca3db1091ade5e Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Wed, 29 Aug 2018 18:54:57 -0700 Subject: [PATCH] config-store: (workaround for #2978) disable deprecation warning --- src/config-store/wscript | 3 +++ wscript | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config-store/wscript b/src/config-store/wscript index a62d87abb..0f9a4f951 100644 --- a/src/config-store/wscript +++ b/src/config-store/wscript @@ -33,6 +33,9 @@ def configure(conf): if conf.env['CXX_NAME'] in ['gcc']: if tuple(map(int, conf.env['CC_VERSION'])) >= gcc_version_gtkplus_warning_issue: conf.env.append_value('CXXFLAGS', '-Wno-parentheses') + # Bug 2978 gcc and clang warnings about deprecated declarations + if conf.env['CXX_NAME'] in ['clang', 'gcc']: + conf.env.append_value ('CXXFLAGS', '-Wno-error=deprecated-declarations') have_libxml2 = conf.check_cfg(package='libxml-2.0', atleast_version='2.7', args=['--cflags', '--libs'], uselib_store='LIBXML2', diff --git a/wscript b/wscript index 498772994..8f34bff95 100644 --- a/wscript +++ b/wscript @@ -643,7 +643,6 @@ def configure(conf): if conf.check_compilation_flag(flag, mode='cc'): env.append_value('CCFLAGS', flag) - add_gcc_flag('-Wno-error=deprecated-declarations') add_gcc_flag('-fstrict-aliasing') add_gcc_flag('-Wstrict-aliasing')