From: Vinson Lee Date: Mon, 24 Aug 2009 17:43:02 +0000 (-0600) Subject: glsl: Silence gcc uninitialized variable warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f785b35b47926e052571386227eff58db7c084e2;p=mesa.git glsl: Silence gcc uninitialized variable warning. --- diff --git a/src/mesa/shader/slang/slang_builtin.c b/src/mesa/shader/slang/slang_builtin.c index 289d94644f0..4e67241f3b2 100644 --- a/src/mesa/shader/slang/slang_builtin.c +++ b/src/mesa/shader/slang/slang_builtin.c @@ -436,7 +436,7 @@ emit_statevars(const char *name, int array_len, struct gl_program_parameter_list *paramList) { if (type->type == SLANG_SPEC_ARRAY) { - GLint i, pos; + GLint i, pos = -1; assert(array_len > 0); if (strcmp(name, "gl_ClipPlane") == 0) { tokens[0] = STATE_CLIPPLANE;