Mesa (mesa_7_6_branch): sis: Silence compiler warnings.

Vinson Lee vlee at kemper.freedesktop.org
Wed Dec 16 01:06:33 UTC 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: a60457b03b4549808de63457485fe9eb00b9fee5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a60457b03b4549808de63457485fe9eb00b9fee5

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Dec 15 17:06:01 2009 -0800

sis: Silence compiler warnings.

---

 src/mesa/drivers/dri/sis/sis_clear.c |    1 -
 src/mesa/drivers/dri/sis/sis_tris.c  |    3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/sis/sis_clear.c b/src/mesa/drivers/dri/sis/sis_clear.c
index 323383d..d358ef6 100644
--- a/src/mesa/drivers/dri/sis/sis_clear.c
+++ b/src/mesa/drivers/dri/sis/sis_clear.c
@@ -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) ?
diff --git a/src/mesa/drivers/dri/sis/sis_tris.c b/src/mesa/drivers/dri/sis/sis_tris.c
index 76d12d0..4fa2e41 100644
--- a/src/mesa/drivers/dri/sis/sis_tris.c
+++ b/src/mesa/drivers/dri/sis/sis_tris.c
@@ -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;




More information about the mesa-commit mailing list