Mesa (mesa_7_6_branch): mga: Silence uninitialized variable warnings.

Vinson Lee vlee at kemper.freedesktop.org
Mon Dec 14 17:30:56 PST 2009


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Mon Dec 14 17:30:15 2009 -0800

mga: Silence uninitialized variable warnings.

---

 src/mesa/drivers/dri/mga/mgatris.c |    3 ++-
 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 b93a21c..c1bcd4b 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;
 
 



More information about the mesa-commit mailing list