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