pvr: Force compile error on GNU void pointer arithmetic
authorMatt Coster <matt.coster@imgtec.com>
Wed, 20 Sep 2023 15:00:19 +0000 (16:00 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 27 Sep 2023 15:25:32 +0000 (15:25 +0000)
commit22bca4a14f5be84b63ce53745dfb0df7e4b822d5
treeba822d62c69a972aa85da323bdaf1896cbb850ce
parent140b3e1f8f08ebdc2c5e1bc4edcc5b5d835694ac
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>
src/imagination/common/meson.build
src/imagination/meson.build
src/imagination/rogue/meson.build
src/imagination/rogue/tools/meson.build
src/imagination/vulkan/meson.build
src/imagination/vulkan/pds/meson.build