Mesa (mesa_7_6_branch): mach64: Silence uninitialized variable warnings.

Vinson Lee vlee at kemper.freedesktop.org
Mon Dec 14 17:21:21 PST 2009


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Mon Dec 14 17:20:34 2009 -0800

mach64: Silence uninitialized variable warnings.

---

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

diff --git a/src/mesa/drivers/dri/mach64/mach64_tris.c b/src/mesa/drivers/dri/mach64/mach64_tris.c
index f2e8e2e..c2a0adf 100644
--- a/src/mesa/drivers/dri/mach64/mach64_tris.c
+++ b/src/mesa/drivers/dri/mach64/mach64_tris.c
@@ -1297,7 +1297,8 @@ do {						\
 
 #define LOCAL_VARS(n)						\
    mach64ContextPtr mmesa = MACH64_CONTEXT(ctx);		\
-   GLuint color[n], spec[n];					\
+   GLuint color[n] = { 0 };					\
+   GLuint spec[n] = { 0 };					\
    GLuint vertex_size = mmesa->vertex_size;			\
    const GLuint xyoffset = 9;					\
    const GLuint coloroffset = 8;				\



More information about the mesa-commit mailing list