pvr: Force compile error on GNU void pointer arithmetic

This GNU extension caused a bug where a void pointer was modified then
interpreted as uint32_t* (instead of the other way round). Force a
compile error to (hopefully) prevent this from happening again.

Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25327>
This commit is contained in:
Matt Coster
2023-09-20 16:00:19 +01:00
committed by Marge Bot
parent 140b3e1f8f
commit 22bca4a14f
6 changed files with 9 additions and 2 deletions
+1
View File
@@ -91,6 +91,7 @@ pvr_deps = [
]
pvr_flags = [
imagination_c_args,
no_override_init_args,
]
+1
View File
@@ -43,6 +43,7 @@ libpowervr_pds = static_library(
inc_imagination,
],
c_args : [
imagination_c_args,
no_override_init_args,
],
gnu_symbol_visibility : 'hidden',