summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i810
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-12-13 00:14:31 -0800
committerVinson Lee <[email protected]>2009-12-13 00:14:31 -0800
commit6c9870b54c1aad42ead5b2655c19c42343b8bf84 (patch)
treeee96b4ab31d142c799a6f779feddf13d8e92b3eb /src/mesa/drivers/dri/i810
parent555dc25c4c5a0991fb6846ccc263a195717512de (diff)
i810: Silence uninitialized variable warnings in i180tris.c
Diffstat (limited to 'src/mesa/drivers/dri/i810')
-rw-r--r--src/mesa/drivers/dri/i810/i810tris.c3
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 b508496fb69..213ba541cee 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;