diff options
author | Adam Jackson <ajax@redhat.com> | 2015-12-08 15:53:35 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2015-12-08 18:20:16 -0500 |
commit | 18729a211a5fdd4f733e44eded754a0e6210b687 (patch) | |
tree | 29fbd8db525f040af0c6c95848ce50c105dd8dc7 /hw/dmx | |
parent | bc996fa4e3c06f65eafe0a88ef491dbf01f31422 (diff) |
glxproxy: Silence set-but-unused-variable warnings
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'hw/dmx')
-rw-r--r-- | hw/dmx/glxProxy/render2swap.c | 34 | ||||
-rw-r--r-- | hw/dmx/glxProxy/renderpixswap.c | 3 |
2 files changed, 6 insertions, 31 deletions
diff --git a/hw/dmx/glxProxy/render2swap.c b/hw/dmx/glxProxy/render2swap.c index 166ec8882..146476c15 100644 --- a/hw/dmx/glxProxy/render2swap.c +++ b/hw/dmx/glxProxy/render2swap.c @@ -67,7 +67,7 @@ void __glXDispSwap_Map1f(GLbyte * pc) { GLint order, k; - GLfloat u1, u2, *points; + GLfloat *points; GLenum target; GLint compsize; @@ -81,8 +81,6 @@ __glXDispSwap_Map1f(GLbyte * pc) target = *(GLenum *) (pc + 0); order = *(GLint *) (pc + 12); - u1 = *(GLfloat *) (pc + 4); - u2 = *(GLfloat *) (pc + 8); points = (GLfloat *) (pc + 16); k = __glEvalComputeK(target); @@ -100,8 +98,8 @@ __glXDispSwap_Map1f(GLbyte * pc) void __glXDispSwap_Map2f(GLbyte * pc) { - GLint uorder, vorder, ustride, vstride, k; - GLfloat u1, u2, v1, v2, *points; + GLint uorder, vorder, k; + GLfloat *points; GLenum target; GLint compsize; @@ -119,15 +117,9 @@ __glXDispSwap_Map2f(GLbyte * pc) target = *(GLenum *) (pc + 0); uorder = *(GLint *) (pc + 12); vorder = *(GLint *) (pc + 24); - u1 = *(GLfloat *) (pc + 4); - u2 = *(GLfloat *) (pc + 8); - v1 = *(GLfloat *) (pc + 16); - v2 = *(GLfloat *) (pc + 20); points = (GLfloat *) (pc + 28); k = __glEvalComputeK(target); - ustride = vorder * k; - vstride = k; if (vorder <= 0 || uorder <= 0 || k < 0) { /* Erroneous command. */ @@ -145,7 +137,7 @@ __glXDispSwap_Map1d(GLbyte * pc) { GLint order, k, compsize; GLenum target; - GLdouble u1, u2, *points; + GLdouble u1, u2; __GLX_DECLARE_SWAP_VARIABLES; __GLX_DECLARE_SWAP_ARRAY_VARIABLES; @@ -177,21 +169,15 @@ __glXDispSwap_Map1d(GLbyte * pc) ** the data in the process */ __GLX_MEM_COPY(pc - 4, pc, compsize * 8); - points = (GLdouble *) (pc - 4); } - else { - points = (GLdouble *) pc; - } -#else - points = (GLdouble *) pc; #endif } void __glXDispSwap_Map2d(GLbyte * pc) { - GLdouble u1, u2, v1, v2, *points; - GLint uorder, vorder, ustride, vstride, k, compsize; + GLdouble u1, u2, v1, v2; + GLint uorder, vorder, k, compsize; GLenum target; __GLX_DECLARE_SWAP_VARIABLES; @@ -222,8 +208,6 @@ __glXDispSwap_Map2d(GLbyte * pc) __GLX_GET_DOUBLE(v2, pc + 24); __GLX_SWAP_DOUBLE_ARRAY(pc + 44, compsize); pc += 44; - ustride = vorder * k; - vstride = k; #ifdef __GLX_ALIGN64 if (((unsigned long) pc) & 7) { @@ -232,13 +216,7 @@ __glXDispSwap_Map2d(GLbyte * pc) ** the data in the process */ __GLX_MEM_COPY(pc - 4, pc, compsize * 8); - points = (GLdouble *) (pc - 4); - } - else { - points = (GLdouble *) pc; } -#else - points = (GLdouble *) pc; #endif } diff --git a/hw/dmx/glxProxy/renderpixswap.c b/hw/dmx/glxProxy/renderpixswap.c index 32df0d5a8..6557a8fc7 100644 --- a/hw/dmx/glxProxy/renderpixswap.c +++ b/hw/dmx/glxProxy/renderpixswap.c @@ -380,12 +380,9 @@ __glXDispSwap_SeparableFilter2D(GLbyte * pc) { __GLXdispatchConvolutionFilterHeader *hdr = (__GLXdispatchConvolutionFilterHeader *) pc; - GLint hdrlen; __GLX_DECLARE_SWAP_VARIABLES; - hdrlen = __GLX_PAD(__GLX_CONV_FILT_CMD_HDR_SIZE); - __GLX_SWAP_INT((GLbyte *) &hdr->rowLength); __GLX_SWAP_INT((GLbyte *) &hdr->skipRows); __GLX_SWAP_INT((GLbyte *) &hdr->skipPixels); |