Mesa (master): glsl: Suppress warning from matching_signature change.
Eric Anholt
anholt at kemper.freedesktop.org
Wed Jul 6 18:18:50 UTC 2011
Module: Mesa
Branch: master
Commit: b043409adfa6ffa6dc78331258de52f7fa6d59aa
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b043409adfa6ffa6dc78331258de52f7fa6d59aa
Author: Eric Anholt <eric at anholt.net>
Date: Tue Jul 5 22:02:33 2011 -0700
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)
---
src/glsl/ir_function.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/glsl/ir_function.cpp b/src/glsl/ir_function.cpp
index ef8d4fc..1255072 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 =
More information about the mesa-commit
mailing list