From f91f6ef739185086b3bbfbf67a15edb1d9a304f4 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 23 Aug 2013 15:12:07 -0600 Subject: [PATCH] glsl: init limit=0 to silence uninitialized var warning Reviewed-by: Paul Berry --- src/glsl/ast_to_hir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index feff5865a59..0db6b459278 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -1922,7 +1922,7 @@ validate_binding_qualifier(struct _mesa_glsl_parse_state *state, * with an array of size N, all elements of the array from binding * through binding + N - 1 must be within this range." */ - unsigned limit; + unsigned limit = 0; switch (state->target) { case vertex_shader: limit = ctx->Const.VertexProgram.MaxTextureImageUnits; -- 2.30.2