From c918e02f0b35f525c15ece75f33676d06fe26c2c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 14 Oct 2020 21:02:42 +0200 Subject: Suppress MSVC warnings in header compile test --- wscript | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'wscript') 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 -- cgit v1.2.1