From 3c8ea260d08099695f7301eaf148f475d8f4b5d3 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Wed, 10 Sep 2025 21:59:23 +0800 Subject: [PATCH] meson: Remove redundant '/wd4996' option for MSVC It's not needed as we already have -D_CRT_SECURE_NO_WARNINGS And use _CRT_NONSTDC_NO_DEPRECATE to disable other warnings Signed-off-by: Yonggang Luo Reviewed-by: Eric Engestrom Part-of: --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index cf0663a86ae..b94a5565130 100644 --- a/meson.build +++ b/meson.build @@ -1061,6 +1061,7 @@ elif host_machine.system() == 'windows' if cc.get_argument_syntax() == 'msvc' pre_args += [ '-D_USE_MATH_DEFINES', + '-D_CRT_NONSTDC_NO_DEPRECATE', '-D_CRT_SECURE_NO_WARNINGS', '-D_CRT_SECURE_NO_DEPRECATE', '-D_SCL_SECURE_NO_WARNINGS', @@ -1103,7 +1104,6 @@ if cc.get_argument_syntax() == 'msvc' '/wd4351', # new behavior: elements of array 'array' will be default initialized '/wd4756', # overflow in constant arithmetic '/wd4800', # forcing value to bool 'true' or 'false' (performance warning) - '/wd4996', # disabled deprecated POSIX name warnings '/wd4291', # no matching operator delete found '/wd4146', # unary minus operator applied to unsigned type, result still unsigned '/wd4200', # nonstandard extension used: zero-sized array in struct/union