From 997945c9f4850f1833543465e91d372ef01a338c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 May 2022 13:35:48 -0400 Subject: Suppress MSVC warnings --- wscript | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'wscript') 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, '*', { -- cgit v1.2.1