Mesa (mesa_7_6_branch): i810: Silence uninitialized variable warnings in i180tris.c

Vinson Lee vlee at kemper.freedesktop.org
Sun Dec 13 08:15:19 UTC 2009


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Sun Dec 13 00:14:31 2009 -0800

i810: Silence uninitialized variable warnings in i180tris.c

---

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

diff --git a/src/mesa/drivers/dri/i810/i810tris.c b/src/mesa/drivers/dri/i810/i810tris.c
index b508496..213ba54 100644
--- a/src/mesa/drivers/dri/i810/i810tris.c
+++ b/src/mesa/drivers/dri/i810/i810tris.c
@@ -270,7 +270,8 @@ do {							\
 
 #define LOCAL_VARS(n)							\
    i810ContextPtr imesa = I810_CONTEXT(ctx);				\
-   GLuint color[n], spec[n];						\
+   GLuint color[n] = { 0 };						\
+   GLuint spec[n] = { 0 };						\
    GLuint coloroffset = (imesa->vertex_size == 4 ? 3 : 4);		\
    GLboolean havespec = (imesa->vertex_size > 4);			\
    (void) color; (void) spec; (void) coloroffset; (void) havespec;




More information about the mesa-commit mailing list