winsys/sw/dri: don't use GNU void pointer arithmetic
authorEmil Velikov <emil.velikov@collabora.com>
Sun, 16 Apr 2017 13:39:03 +0000 (14:39 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 19 Apr 2017 11:19:38 +0000 (12:19 +0100)
commit309f4067a795219027f523bf0733692e48f2fd58
tree3d3458e997b7d48aa5024fdea49abfa207d9b815
parent4516bfbd309a6996c18f577de47b13e33dce0828
winsys/sw/dri: don't use GNU void pointer arithmetic

Resolves build issues like the following:

src/gallium/winsys/sw/dri/dri_sw_winsys.c:203:31: error: pointer of type ‘void *’ used in arithmetic [-Werror=pointer-arith]
        data = dri_sw_dt->data + (dri_sw_dt->stride * box->y) + box->x * blsize;
                               ^
src/gallium/winsys/sw/dri/dri_sw_winsys.c:203:62: error: pointer of type ‘void *’ used in arithmetic [-Werror=pointer-arith]
        data = dri_sw_dt->data + (dri_sw_dt->stride * box->y) + box->x * blsize;
                                                              ^

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/winsys/sw/dri/dri_sw_winsys.c