summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/unichrome/via_tris.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-12-15 17:39:30 -0800
committerVinson Lee <vlee@vmware.com>2009-12-15 17:39:30 -0800
commitdc0a1ebc7369da62c2dfbd5ea8dec3273e099725 (patch)
treeaf4d2e5fa9c16a58cc071fbffe9522245cf7f24f /src/mesa/drivers/dri/unichrome/via_tris.c
parenta60457b03b4549808de63457485fe9eb00b9fee5 (diff)
unichrome: Silence compiler warnings.
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_tris.c')
-rw-r--r--src/mesa/drivers/dri/unichrome/via_tris.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_tris.c b/src/mesa/drivers/dri/unichrome/via_tris.c
index 79e67620c9..e2f1f02c99 100644
--- a/src/mesa/drivers/dri/unichrome/via_tris.c
+++ b/src/mesa/drivers/dri/unichrome/via_tris.c
@@ -330,7 +330,8 @@ do { \
#define LOCAL_VARS(n) \
struct via_context *vmesa = VIA_CONTEXT(ctx); \
- GLuint color[n], spec[n]; \
+ GLuint color[n] = { 0 }; \
+ GLuint spec[n] = { 0 }; \
GLuint coloroffset = vmesa->coloroffset; \
GLuint specoffset = vmesa->specoffset; \
(void)color; (void)spec; (void)coloroffset; (void)specoffset;