Mesa (mesa_7_6_branch): swrast: Silence uninitialized variable warnings in ss_tritmp.h.
Vinson Lee
vlee at kemper.freedesktop.org
Sun Dec 13 06:01:16 UTC 2009
Module: Mesa
Branch: mesa_7_6_branch
Commit: 0aef54ba627c748a43f601228c725f5ba79be002
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0aef54ba627c748a43f601228c725f5ba79be002
Author: Vinson Lee <vlee at vmware.com>
Date: Sat Dec 12 22:00:19 2009 -0800
swrast: Silence uninitialized variable warnings in ss_tritmp.h.
---
src/mesa/swrast_setup/ss_tritmp.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mesa/swrast_setup/ss_tritmp.h b/src/mesa/swrast_setup/ss_tritmp.h
index 724b5e9..bd20a8d 100644
--- a/src/mesa/swrast_setup/ss_tritmp.h
+++ b/src/mesa/swrast_setup/ss_tritmp.h
@@ -41,9 +41,9 @@ static void TAG(triangle)(GLcontext *ctx, GLuint e0, GLuint e1, GLuint e2 )
GLenum mode = GL_FILL;
GLuint facing = 0;
GLchan saved_color[3][4];
- GLfloat saved_col0[3][4];
- GLfloat saved_spec[3][4];
- GLfloat saved_index[3];
+ GLfloat saved_col0[3][4] = { { 0 } };
+ GLfloat saved_spec[3][4] = { { 0 } };
+ GLfloat saved_index[3] = { 0 };
v[0] = &verts[e0];
v[1] = &verts[e1];
More information about the mesa-commit
mailing list