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:
@@ -34,6 +34,6 @@ libpowervr_common = static_library(
|
||||
inc_src,
|
||||
inc_imagination,
|
||||
],
|
||||
c_args : [no_override_init_args],
|
||||
c_args : [imagination_c_args, no_override_init_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user