About Social Code
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYonggang Luo <luoyonggang@gmail.com>2025-09-10 21:59:23 +0800
committerMarge Bot <marge-bot@fdo.invalid>2025-09-13 08:23:07 +0000
commit3c8ea260d08099695f7301eaf148f475d8f4b5d3 (patch)
tree769b258bf65fdc86daf0bc8381ef77dc70cdd919
parent64655a77a6e427a5adeafcb3f2c0bad7ce47b142 (diff)
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 <luoyonggang@gmail.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37289>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
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