From: Brian Paul Date: Thu, 10 Nov 2011 22:56:04 +0000 (-0700) Subject: mesa: silence uninitialized var warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3800fe800bfc7faac6e629e584487c5904a5ef2b;p=mesa.git mesa: silence uninitialized var warning --- diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 39aa5570eca..5371d6a176b 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/src/mesa/main/uniform_query.cpp @@ -894,7 +894,7 @@ _mesa_get_uniform_location(struct gl_context *ctx, array_lookup = false; } - unsigned location; + unsigned location = 0; const bool found = shProg->UniformHash->get(location, name_copy); assert(!found