diff options
Diffstat (limited to 'xc/lib/GL/glx/packsingle.h')
-rw-r--r-- | xc/lib/GL/glx/packsingle.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/xc/lib/GL/glx/packsingle.h b/xc/lib/GL/glx/packsingle.h index db73d80bf..52c0cd4df 100644 --- a/xc/lib/GL/glx/packsingle.h +++ b/xc/lib/GL/glx/packsingle.h @@ -63,9 +63,10 @@ #define __GLX_SINGLE_LOAD_VARIABLES() \ pc = gc->pc; \ - (void) pixelHeaderPC; \ - (void) compsize; \ - (void) cmdlen + /* Muffle compilers */ \ + pixelHeaderPC = 0; (void)pixelHeaderPC; \ + compsize = 0; (void)compsize; \ + cmdlen = 0; (void)cmdlen /* Start a single command */ #define __GLX_SINGLE_BEGIN(opcode,bytes) \ @@ -172,25 +173,25 @@ extern float gl_ntoh_double(GLubyte *); #endif /* Get an array of typed data */ -#define __GLX_SINGLE_GET_VOID_ARRAY(a,alen) \ +#define __GLX_SINGLE_GET_VOID_ARRAY(a,alen) \ { \ GLint slop = alen*__GLX_SIZE_INT8 & 3; \ - _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT8); \ + _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT8); \ if (slop) _XEatData(dpy,4-slop); \ } -#define __GLX_SINGLE_GET_CHAR_ARRAY(a,alen) \ +#define __GLX_SINGLE_GET_CHAR_ARRAY(a,alen) \ { \ GLint slop = alen*__GLX_SIZE_INT8 & 3; \ - _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT8); \ + _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT8); \ if (slop) _XEatData(dpy,4-slop); \ } -#define __GLX_SINGLE_GET_SHORT_ARRAY(a,alen) \ +#define __GLX_SINGLE_GET_SHORT_ARRAY(a,alen) \ { \ GLint slop = (alen*__GLX_SIZE_INT16) & 3; \ - _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT16); \ + _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT16);\ if (slop) _XEatData(dpy,4-slop); \ } |