diff options
author | David Robillard <d@drobilla.net> | 2020-07-04 15:08:09 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:59 +0100 |
commit | 54bc5df08880943afbfde181f4a825d189468819 (patch) | |
tree | ea182296203871b90c9ecf01488d5ad6c0436c0a /wscript | |
parent | c3f3ecd32a893c084b2d2e8d4228ae9925743d36 (diff) | |
download | serd-54bc5df08880943afbfde181f4a825d189468819.tar.gz serd-54bc5df08880943afbfde181f4a825d189468819.tar.bz2 serd-54bc5df08880943afbfde181f4a825d189468819.zip |
Suppress warnings from some compilers
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -94,10 +94,12 @@ def configure(conf): '/wd4200', # nonstandard: zero-sized array in struct/union '/wd4464', # relative include path contains '..' '/wd4514', # unreferenced inline function has been removed + '/wd4706', # assignment within conditional expression '/wd4710', # function not inlined '/wd4711', # function selected for automatic inline expansion '/wd4820', # padding added after construct '/wd4996', # POSIX name for this item is deprecated + '/wd5045', # will insert Spectre mitigation for memory load ], }) @@ -135,6 +137,17 @@ def configure(conf): ] }) + if 'mingw' in conf.env.CC[0]: + conf.env.append_unique('CFLAGS', [ + '-Wno-float-conversion', + '-Wno-format', + '-Wno-suggest-attribute=format' + ]) + + conf.env.append_unique('CXXFLAGS', [ + '-Wno-suggest-attribute=format' + ]) + conf.env.update({ 'BUILD_UTILS': not Options.options.no_utils, 'BUILD_SHARED': not Options.options.no_shared, |