diff options
author | David Robillard <d@drobilla.net> | 2020-07-04 15:38:41 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-04 15:38:41 +0200 |
commit | ad471068f63fd886194e1888f7b31e6d8d1b5a06 (patch) | |
tree | 9daf0e3645e3eddf17b3ef932ba398fbf14689ee | |
parent | e9b269a284db69c6e19ceba79075e017a33e7f99 (diff) |
Only enable MSVC C++ warnings when compiling C++ code
-rw-r--r-- | wscript | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 |