summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-07-05 22:02:33 -0700
committerEric Anholt <eric@anholt.net>2011-07-06 11:17:19 -0700
commitb043409adfa6ffa6dc78331258de52f7fa6d59aa (patch)
tree4e438308d373ef610488ae4a670a936d1ad8a369
parentabbbd14dd440cfbbe8b42279cf95c30eec5b495d (diff)
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)
-rw-r--r--src/glsl/ir_function.cpp2
1 files changed, 1 insertions, 1 deletions
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 =