aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-29 13:35:48 -0400
committerDavid Robillard <d@drobilla.net>2022-05-29 13:35:48 -0400
commit997945c9f4850f1833543465e91d372ef01a338c (patch)
tree39fe2296cc437825c8640e7a8cd2ad1585d01e58
parent62890834b02f158087c2b7bcb19498128c3c6fff (diff)
downloadjalv-997945c9f4850f1833543465e91d372ef01a338c.tar.gz
jalv-997945c9f4850f1833543465e91d372ef01a338c.tar.bz2
jalv-997945c9f4850f1833543465e91d372ef01a338c.zip
Suppress MSVC warnings
-rw-r--r--wscript17
1 files changed, 17 insertions, 0 deletions
diff --git a/wscript b/wscript
index 6777f97..f9dc18f 100644
--- a/wscript
+++ b/wscript
@@ -57,6 +57,23 @@ def configure(conf):
'-Wno-bad-function-cast',
'-Wno-c++-compat',
],
+ 'msvc': [
+ '/wd4061', # enumerator in switch is not explicitly handled
+ '/wd4100', # unreferenced formal parameter
+ '/wd4191', # unsafe function conversion
+ '/wd4200', # zero-sized array in struct/union
+ '/wd4244', # possible loss of data from integer conversion
+ '/wd4267', # possible loss of data from size conversion
+ '/wd4365', # signed/unsigned mismatch
+ '/wd4514', # unreferenced inline function has been removed
+ '/wd4706', # assignment within conditional expression
+ '/wd4710', # function not inlined
+ '/wd4711', # function selected for automatic inline expansion
+ '/wd4800', # implicit conversion from int to bool
+ '/wd4820', # padding added after construct
+ '/wd4996', # POSIX name for this item is deprecated
+ '/wd5045', # compiler will insert Spectre mitigation
+ ],
})
autowaf.add_compiler_flags(conf.env, '*', {