Mesa (master): swrast: Silence uninitialized variable warnings in ss_tritmp .h.

Vinson Lee vlee at kemper.freedesktop.org
Thu Feb 11 02:31:45 UTC 2010


Module: Mesa
Branch: master
Commit: 19045d3749827caf176ae5cfc00c81e4fd486d74
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=19045d3749827caf176ae5cfc00c81e4fd486d74

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Feb 10 18:30:46 2010 -0800

swrast: Silence uninitialized variable warnings in ss_tritmp.h.

---

 src/mesa/swrast_setup/ss_tritmp.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/swrast_setup/ss_tritmp.h b/src/mesa/swrast_setup/ss_tritmp.h
index 8484aab..d9bf54d 100644
--- a/src/mesa/swrast_setup/ss_tritmp.h
+++ b/src/mesa/swrast_setup/ss_tritmp.h
@@ -40,7 +40,7 @@ static void TAG(triangle)(GLcontext *ctx, GLuint e0, GLuint e1, GLuint e2 )
    GLfloat offset, oz0, oz1, oz2;
    GLenum mode = GL_FILL;
    GLuint facing = 0;
-   GLchan saved_color[3][4];
+   GLchan saved_color[3][4] = { { 0 } };
    GLfloat saved_col0[3][4] = { { 0 } };
    GLfloat saved_spec[3][4] = { { 0 } };
    GLfloat saved_index[3] = { 0 };




More information about the mesa-commit mailing list