From e09f204aca2393ba0f78867eb2e284ab00091205 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 13 Mar 2020 13:05:47 +0100 Subject: Strengthen warnings --- wscript | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 510b260..a80492d 100644 --- a/wscript +++ b/wscript @@ -62,6 +62,10 @@ def configure(conf): conf.env.append_value('CFLAGS', ['-Wunused-parameter', '-Wno-pedantic']) + if conf.env.TARGET_PLATFORM == 'darwin': + conf.env.append_unique('CFLAGS', ['-DGL_SILENCE_DEPRECATION']) + conf.env.append_unique('CXXFLAGS', ['-DGL_SILENCE_DEPRECATION']) + if Options.options.ultra_strict and 'clang' in conf.env.CC: for var in ['CFLAGS', 'CXXFLAGS']: flags = conf.env[var] @@ -69,16 +73,12 @@ def configure(conf): conf.env.append_value(var, [ '-Weverything', '-Wno-bad-function-cast', - '-Wno-documentation', # Cairo - '-Wno-documentation-unknown-command', # Cairo '-Wno-double-promotion', '-Wno-float-equal', '-Wno-format-nonliteral', '-Wno-padded', '-Wno-reserved-id-macro', - '-Wno-sign-conversion', '-Wno-switch-enum', - '-Wno-unused-macros', # GL_SILENCE_DEPRECATION ]) conf.env.append_value('CXXFLAGS', ['-Wno-c++98-compat', @@ -123,6 +123,7 @@ def configure(conf): autowaf.check_pkg(conf, 'cairo', uselib_store = 'CAIRO', atleast_version = '1.0.0', + system = True, mandatory = False) if Options.options.log: -- cgit v1.2.1