From 6c1d993640a0db52e8fdbf856531778aed88dd38 Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Mon, 1 Dec 2025 16:07:27 -0800 Subject: [PATCH] meson: add -Wgnu-pointer-arith to _trial_msvc In theory, this will prevent the warning in the future in common code (which uses c_msvc_compat_args). Reviewed-by: Erik Faye-Lund Part-of: --- meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 97c2aec1974..6098c567df5 100644 --- a/meson.build +++ b/meson.build @@ -1255,7 +1255,12 @@ else # Check for C and C++ arguments for MSVC compatibility. These are only used # in parts of the mesa code base that need to compile with MSVC, mainly # common code - _trial_msvc = ['-Werror=pointer-arith', '-Werror=vla', '-Werror=gnu-empty-initializer'] + _trial_msvc = [ + '-Werror=pointer-arith', + '-Werror=vla', + '-Werror=gnu-empty-initializer', + '-Wgnu-pointer-arith', + ] c_msvc_compat_args += cc.get_supported_arguments(_trial_msvc) cpp_msvc_compat_args += cpp.get_supported_arguments(_trial_msvc) endif