radv: Use c_msvc_compat_args.
authorGeorg Lehmann <dadschoorse@gmail.com>
Fri, 25 Jun 2021 15:39:10 +0000 (17:39 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 23 Jul 2021 20:28:58 +0000 (20:28 +0000)
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11610>

src/amd/vulkan/meson.build

index f3c4363..3bd5e0b 100644 (file)
@@ -102,7 +102,7 @@ if not with_platform_windows
 endif
 
 radv_deps = []
-radv_flags = cc.get_supported_arguments(['-Wimplicit-fallthrough', '-Wshadow', '-Wpointer-arith'])
+radv_flags = cc.get_supported_arguments(['-Wimplicit-fallthrough', '-Wshadow'])
 
 if with_platform_x11
   radv_deps += dep_xcb_dri3
@@ -167,8 +167,8 @@ libvulkan_radeon = shared_library(
     dep_valgrind, radv_deps, idep_aco,
     idep_mesautil, idep_nir, idep_vulkan_util, idep_amdgfxregs_h, idep_xmlconfig,
   ],
-  c_args : [no_override_init_args, radv_flags],
-  cpp_args : [radv_flags],
+  c_args : [no_override_init_args, radv_flags, c_msvc_compat_args],
+  cpp_args : [radv_flags, cpp_msvc_compat_args],
   link_args : [
     ld_args_build_id, ld_args_bsymbolic, ld_args_gc_sections, libvulkan_radeon_ld_args,
   ],