Mesa (main): radv: Add -Wpointer-arith.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 21 10:04:02 UTC 2021


Module: Mesa
Branch: main
Commit: a99474fae52db73a23861c2ba961ee5424222da5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a99474fae52db73a23861c2ba961ee5424222da5

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Sat Jun 19 00:02:52 2021 +0200

radv: Add -Wpointer-arith.

Gives earlier indications of MSVC issues.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11478>

---

 src/amd/vulkan/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/meson.build b/src/amd/vulkan/meson.build
index 60e28724e5d..f3c4363d794 100644
--- a/src/amd/vulkan/meson.build
+++ b/src/amd/vulkan/meson.build
@@ -102,7 +102,7 @@ if not with_platform_windows
 endif
 
 radv_deps = []
-radv_flags = cc.get_supported_arguments(['-Wimplicit-fallthrough', '-Wshadow'])
+radv_flags = cc.get_supported_arguments(['-Wimplicit-fallthrough', '-Wshadow', '-Wpointer-arith'])
 
 if with_platform_x11
   radv_deps += dep_xcb_dri3



More information about the mesa-commit mailing list