diff options
author | David Robillard <d@drobilla.net> | 2020-10-14 21:02:42 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-14 21:02:42 +0200 |
commit | c918e02f0b35f525c15ece75f33676d06fe26c2c (patch) | |
tree | 0f8f0fbe314f610024227f0849545b20c1d7fb43 /wscript | |
parent | 96f6df5b89a300ef69dcba929a2810cb3e5e26ef (diff) | |
download | pugl-c918e02f0b35f525c15ece75f33676d06fe26c2c.tar.gz pugl-c918e02f0b35f525c15ece75f33676d06fe26c2c.tar.bz2 pugl-c918e02f0b35f525c15ece75f33676d06fe26c2c.zip |
Suppress MSVC warnings in header compile test
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -474,9 +474,21 @@ def build(bld): autowaf.add_compiler_flags(strict_env, '*', { 'clang': ['-Wno-padded'], 'gcc': ['-Wno-padded', '-Wno-suggest-attribute=const'], + 'msvc': [ + '/wd4514', # unreferenced inline function has been removed + '/wd4820', # padding added after construct + ], }) autowaf.add_compiler_flags(strict_env, 'cxx', { 'clang': ['-Wno-documentation-unknown-command'], + 'msvc': [ + '/wd4355', # 'this' used in base member initializer list + '/wd4571', # structured exceptions (SEH) are no longer caught + '/wd4625', # copy constructor implicitly deleted + '/wd4626', # assignment operator implicitly deleted + '/wd5026', # move constructor implicitly deleted + '/wd5027', # move assignment operator implicitly deleted + ], }) # Check that C headers build with (almost) no warnings |