radv: Add -Wpointer-arith.

Gives earlier indications of MSVC issues.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11478>
This commit is contained in:
Bas Nieuwenhuizen 2021-06-19 00:02:52 +02:00 committed by Marge Bot
parent 72174a3eef
commit a99474fae5

View file

@ -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