projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abbbd14
)
glsl: Suppress warning from matching_signature change.
author
Eric Anholt
<eric@anholt.net>
Wed, 6 Jul 2011 05:02:33 +0000
(22:02 -0700)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/src/glsl/ir_function.cpp
b/src/glsl/ir_function.cpp
index ef8d4fcfcd4dbd8a90776d93eb6a66352a2f4480..1255072a571f137237db5a375ea905a1ac639dd6 100644
(file)
--- 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 =