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
Signed-off-by: Matt Coster <firstname.lastname@example.org> Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>