pvr: Don't allow void pointer arithmetic
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