From 3800fe800bfc7faac6e629e584487c5904a5ef2b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 10 Nov 2011 15:56:04 -0700 Subject: [PATCH] mesa: silence uninitialized var warning --- src/mesa/main/uniform_query.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2