mach64: Silence uninitialized variable warnings.
authorVinson Lee <vlee@vmware.com>
Tue, 15 Dec 2009 01:20:34 +0000 (17:20 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 15 Dec 2009 01:20:34 +0000 (17:20 -0800)
src/mesa/drivers/dri/mach64/mach64_tris.c

index f2e8e2e3ae8c59b4bd9b76dd55c5e0b4bba5d959..c2a0adfef02e0a25d6df2d53a48ea8e2dcbb34b5 100644 (file)
@@ -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;                               \