From efe19ede5f5371fbece1c9283fc499f5f97eaaae Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 10 Mar 2021 14:20:13 -0500 Subject: Fix warnings with VS2019 --- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 0b7b9fa..02fae17 100644 --- a/meson.build +++ b/meson.build @@ -64,15 +64,16 @@ if get_option('strict') ] elif cc.get_id() == 'msvc' c_warnings += [ - '/wd4061', # enumerator in switch is not explicitly handled '/wd4028', # formal parameter different from declaration + '/wd4061', # enumerator in switch is not explicitly handled '/wd4191', # unsafe conversion from type to type - '/wd4996', # function or variable may be unsafe '/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', # function or variable may be unsafe '/wd5045', # will insert Spectre mitigation for memory load ] endif @@ -119,6 +120,7 @@ if get_option('strict') '/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 '/wd4868', # compiler may not enforce left-to-right evaluation order '/wd4996', # function or variable may be unsafe -- cgit v1.2.1