diff options
author | Emil Velikov <[email protected]> | 2017-04-16 14:39:03 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-04-24 13:11:14 +0100 |
commit | 4e7e903bb39fdd22dea01b410e9ae390c58777ac (patch) | |
tree | fe3be9eb3f430affcf02e6f12c8e760174e3f3f5 /src/gallium | |
parent | 26949e872b482d4ac2226f0097ee76d057b33103 (diff) |
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: <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
(cherry picked from commit 309f4067a795219027f523bf0733692e48f2fd58)
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/winsys/sw/dri/dri_sw_winsys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/sw/dri/dri_sw_winsys.c b/src/gallium/winsys/sw/dri/dri_sw_winsys.c index 94d5092405e..00849985d6b 100644 --- a/src/gallium/winsys/sw/dri/dri_sw_winsys.c +++ b/src/gallium/winsys/sw/dri/dri_sw_winsys.c @@ -200,7 +200,7 @@ dri_sw_displaytarget_display(struct sw_winsys *ws, if (box) { void *data; - data = dri_sw_dt->data + (dri_sw_dt->stride * box->y) + box->x * blsize; + data = (char *)dri_sw_dt->data + (dri_sw_dt->stride * box->y) + box->x * blsize; dri_sw_ws->lf->put_image2(dri_drawable, data, box->x, box->y, box->width, box->height, dri_sw_dt->stride); } else { |