aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-04 15:38:41 +0200
committerDavid Robillard <d@drobilla.net>2020-07-04 15:38:41 +0200
commitad471068f63fd886194e1888f7b31e6d8d1b5a06 (patch)
tree9daf0e3645e3eddf17b3ef932ba398fbf14689ee /wscript
parente9b269a284db69c6e19ceba79075e017a33e7f99 (diff)
downloadpugl-ad471068f63fd886194e1888f7b31e6d8d1b5a06.tar.gz
pugl-ad471068f63fd886194e1888f7b31e6d8d1b5a06.tar.bz2
pugl-ad471068f63fd886194e1888f7b31e6d8d1b5a06.zip
Only enable MSVC C++ warnings when compiling C++ code
Diffstat (limited to 'wscript')
-rw-r--r--wscript14
1 files 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