pvr: Don't allow void pointer arithmetic

Matt Coster requested to merge MTCoster/mesa:dev/void-pointer-arith into main

What does this MR do and why?

Besides being not standard C, one instance (in pvr_cmd_buffer.c) was a bug caused by adding-then-casting, which would likely have been caught if void pointer arithmetic were not allowed.

All instances detected by -Wpointer-arith have been fixed here.

To prevent future similar issues, we add -Werror=pointer-arith to all build targets under imagination/.

Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Edited by Matt Coster

Merge request reports