From: Vinson Lee Date: Thu, 11 Feb 2010 02:30:46 +0000 (-0800) Subject: swrast: Silence uninitialized variable warnings in ss_tritmp.h. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19045d3749827caf176ae5cfc00c81e4fd486d74;p=mesa.git swrast: Silence uninitialized variable warnings in ss_tritmp.h. --- diff --git a/src/mesa/swrast_setup/ss_tritmp.h b/src/mesa/swrast_setup/ss_tritmp.h index 8484aab5a93..d9bf54dd46e 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 };