aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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