Module: Mesa Branch: master Commit: b043409adfa6ffa6dc78331258de52f7fa6d59aa URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b043409adfa6ffa6dc78331258de52f7fa6d59aa
Author: Eric Anholt <[email protected]> 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 = _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
