summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/mga
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-12-14 17:30:15 -0800
committerVinson Lee <[email protected]>2009-12-14 17:30:15 -0800
commit6e5fe39f5051bb758b98ed4b9a2b9d550b588edf (patch)
tree7431812f047ebc47b0667a7a88915f44a18043c4 /src/mesa/drivers/dri/mga
parentb18fa9f44810cde45519368170a505cdd0ebb936 (diff)
mga: Silence uninitialized variable warnings.
Diffstat (limited to 'src/mesa/drivers/dri/mga')
-rw-r--r--src/mesa/drivers/dri/mga/mgatris.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/mga/mgatris.c b/src/mesa/drivers/dri/mga/mgatris.c
index b93a21c3acf..c1bcd4b8531 100644
--- a/src/mesa/drivers/dri/mga/mgatris.c
+++ b/src/mesa/drivers/dri/mga/mgatris.c
@@ -397,7 +397,8 @@ do { \
#define LOCAL_VARS(n) \
mgaContextPtr mmesa = MGA_CONTEXT(ctx); \
- GLuint color[n], spec[n]; \
+ GLuint color[n] = { 0 }; \
+ GLuint spec[n] = { 0 }; \
(void) color; (void) spec;