Mesa (mesa_7_6_branch): ffb: Silence compiler warnings.

Vinson Lee vlee at kemper.freedesktop.org
Tue Dec 22 14:29:22 PST 2009


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Dec 22 14:28:40 2009 -0800

ffb: Silence compiler warnings.

---

 src/mesa/drivers/dri/ffb/ffb_tris.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/ffb/ffb_tris.c b/src/mesa/drivers/dri/ffb/ffb_tris.c
index d785c15..e7dd960 100644
--- a/src/mesa/drivers/dri/ffb/ffb_tris.c
+++ b/src/mesa/drivers/dri/ffb/ffb_tris.c
@@ -352,7 +352,7 @@ static struct {
 #define LOCAL_VARS(n)				\
    ffbContextPtr fmesa = FFB_CONTEXT(ctx);	\
    __DRIdrawablePrivate *dPriv = fmesa->driDrawable; \
-   ffb_color color[n];				\
+   ffb_color color[n] = { { 0 } };		\
    (void) color; (void) dPriv;
 
 /***********************************************************************



More information about the mesa-commit mailing list