From 56176f00f59624ef1335175b3669081e2f3e83ed Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 21 Aug 2010 20:38:07 -0700 Subject: [PATCH] glsl: Silence uninitialized variable warning. i686-apple-darwin10-gcc-4.2.1 generated the following warning. warning: 'score' may be used uninitialized in this function GCC 4.4.3 on Linux didn't generate the above warning. --- src/glsl/ir_function.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/glsl/ir_function.cpp b/src/glsl/ir_function.cpp index 0a97e014244..dfdec144b2f 100644 --- a/src/glsl/ir_function.cpp +++ b/src/glsl/ir_function.cpp @@ -139,6 +139,9 @@ parameter_lists_match(const exec_list *list_a, const exec_list *list_b) */ score = (type_compare(actual->type, param->type) == 0) ? 0 : -1; break; + + default: + assert(false); } if (score < 0) -- 2.30.2