From: Eric Anholt Date: Wed, 6 Jul 2011 05:02:33 +0000 (-0700) Subject: glsl: Suppress warning from matching_signature change. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b043409adfa6ffa6dc78331258de52f7fa6d59aa;p=mesa.git glsl: Suppress warning from matching_signature change. gcc isn't smart enough to see that we only look at matched_score after we've initialized it (because match != NULL happens at the same time) --- diff --git a/src/glsl/ir_function.cpp b/src/glsl/ir_function.cpp index ef8d4fcfcd4..1255072a571 100644 --- a/src/glsl/ir_function.cpp +++ b/src/glsl/ir_function.cpp @@ -165,7 +165,7 @@ ir_function_signature * ir_function::matching_signature(const exec_list *actual_parameters) { ir_function_signature *match = NULL; - int matched_score; + int matched_score = 0; foreach_iter(exec_list_iterator, iter, signatures) { ir_function_signature *const sig =