config-store: (workaround for #2978) disable deprecation warning

This commit is contained in:
Tom Henderson
2018-08-29 18:54:57 -07:00
parent 971c25bcbe
commit 1483459c44
2 changed files with 3 additions and 1 deletions

View File

@@ -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',

View File

@@ -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')