From ad471068f63fd886194e1888f7b31e6d8d1b5a06 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 4 Jul 2020 15:38:41 +0200 Subject: Only enable MSVC C++ warnings when compiling C++ code --- wscript | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/wscript b/wscript index 48a9bc2..9315220 100644 --- a/wscript +++ b/wscript @@ -82,16 +82,10 @@ def configure(conf): 'msvc': [ '/wd4061', # enumerator in switch is not explicitly handled '/wd4191', # unsafe conversion from type to type - '/wd4355', # 'this' used in base member initializer list '/wd4514', # unreferenced inline function has been removed - '/wd4571', # structured exceptions (SEH) are no longer caught - '/wd4625', # copy constructor implicitly deleted - '/wd4626', # assignment operator implicitly deleted '/wd4706', # assignment within conditional expression '/wd4710', # function not inlined '/wd4820', # padding added after construct - '/wd5026', # move constructor implicitly defined as deleted - '/wd5027', # move assignment operator implicitly deleted '/wd5045', # will insert Spectre mitigation for memory load ], }) @@ -110,6 +104,14 @@ def configure(conf): 'gcc': [ '-Wno-old-style-cast', ], + '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 + ], }) # Add some platform-specific warning suppressions -- cgit v1.2.1