diff options
author | David Robillard <d@drobilla.net> | 2020-03-13 13:05:47 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-03-13 13:05:47 +0100 |
commit | e09f204aca2393ba0f78867eb2e284ab00091205 (patch) | |
tree | f7227b5541eaaa735835e749e2a4c51d2054e70c /wscript | |
parent | 5c02f37c8d1dd74f3b72f1fb0b2a77f4d1dc2da9 (diff) | |
download | pugl-e09f204aca2393ba0f78867eb2e284ab00091205.tar.gz pugl-e09f204aca2393ba0f78867eb2e284ab00091205.tar.bz2 pugl-e09f204aca2393ba0f78867eb2e284ab00091205.zip |
Strengthen warnings
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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: |