Module: Mesa Branch: master Commit: f91f6ef739185086b3bbfbf67a15edb1d9a304f4 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f91f6ef739185086b3bbfbf67a15edb1d9a304f4
Author: Brian Paul <bri...@vmware.com> Date: Fri Aug 23 15:12:07 2013 -0600 glsl: init limit=0 to silence uninitialized var warning Reviewed-by: Paul Berry <stereotype...@gmail.com> --- src/glsl/ast_to_hir.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index feff586..0db6b45 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; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit