glsl: Suppress warning from matching_signature change.
authorEric Anholt <eric@anholt.net>
Wed, 6 Jul 2011 05:02:33 +0000 (22:02 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 6 Jul 2011 18:17:19 +0000 (11:17 -0700)
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)

src/glsl/ir_function.cpp

index ef8d4fc..1255072 100644 (file)
@@ -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 =