aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-14 21:02:42 +0200
committerDavid Robillard <d@drobilla.net>2020-10-14 21:02:42 +0200
commitc918e02f0b35f525c15ece75f33676d06fe26c2c (patch)
tree0f8f0fbe314f610024227f0849545b20c1d7fb43
parent96f6df5b89a300ef69dcba929a2810cb3e5e26ef (diff)
Suppress MSVC warnings in header compile test
-rw-r--r--wscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/wscript b/wscript
index ff6a768..c28d5b6 100644
--- a/wscript
+++ b/wscript
@@ -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