Mesa (master): gamma: Silence uninitialized variable warnings.
Vinson Lee
vlee at kemper.freedesktop.org
Sat Feb 20 10:30:18 UTC 2010
Module: Mesa
Branch: master
Commit: 1613735d08eacc4b3d21694e5010587357525ecc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1613735d08eacc4b3d21694e5010587357525ecc
Author: Vinson Lee <vlee at vmware.com>
Date: Sat Feb 20 02:29:43 2010 -0800
gamma: Silence uninitialized variable warnings.
---
src/mesa/drivers/dri/gamma/gamma_tris.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/gamma/gamma_tris.c b/src/mesa/drivers/dri/gamma/gamma_tris.c
index b7eab34..babe964 100644
--- a/src/mesa/drivers/dri/gamma/gamma_tris.c
+++ b/src/mesa/drivers/dri/gamma/gamma_tris.c
@@ -323,7 +323,7 @@ do { \
#define LOCAL_VARS(n) \
gammaContextPtr gmesa = GAMMA_CONTEXT(ctx); \
- GLuint color[n]; \
+ GLuint color[n] = { 0 }; \
(void) color;
More information about the mesa-commit
mailing list