sis: Silence compiler warnings.
authorVinson Lee <vlee@vmware.com>
Wed, 16 Dec 2009 01:06:01 +0000 (17:06 -0800)
committerVinson Lee <vlee@vmware.com>
Wed, 16 Dec 2009 01:06:01 +0000 (17:06 -0800)
src/mesa/drivers/dri/sis/sis_clear.c
src/mesa/drivers/dri/sis/sis_tris.c

index 323383da62a9d011c7d15453ba4c15a1173c427c..d358ef62dc7ccb39bb3bc0f1fea9db9ed23995f1 100644 (file)
@@ -393,7 +393,6 @@ sis_clear_z_stencil_buffer( GLcontext * ctx, GLbitfield mask,
                            GLint x, GLint y, GLint width, GLint height )
 {
    sisContextPtr smesa = SIS_CONTEXT(ctx);
-   int cmd;
 
    mWait3DCmdQueue (8);
    MMIO(REG_SRC_PITCH, (smesa->zFormat == SiS_ZFORMAT_Z16) ?
index 76d12d07b3ca4e3aef5a665b8d0ad2646efa0088..4fa2e41e44f30e0a6a0317ba016ac81ca6dafcc2 100644 (file)
@@ -430,7 +430,8 @@ do {                                                                \
 
 #define LOCAL_VARS(n)                                          \
    sisContextPtr smesa = SIS_CONTEXT(ctx);                     \
-   GLuint color[n], spec[n];                                   \
+   GLuint color[n] = { 0 };                                    \
+   GLuint spec[n] = { 0 };                                     \
    GLuint coloroffset = smesa->coloroffset;                    \
    GLuint specoffset = smesa->specoffset;                      \
    (void) color; (void) spec; (void) coloroffset; (void) specoffset;