[Mesa-dev] [PATCH] glsl: init limit=0 to silence uninitialized var warning
Paul Berry
stereotype441 at gmail.com
Fri Aug 23 14:16:23 PDT 2013
On 23 August 2013 14:12, Brian Paul <brianp at vmware.com> wrote:
> ---
> 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 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;
>
Thanks, Brian.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130823/a33ab927/attachment.html>
More information about the mesa-dev
mailing list