summaryrefslogtreecommitdiff
path: root/src/glsl/ir_function.cpp
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-08-21 20:38:07 -0700
committerVinson Lee <vlee@vmware.com>2010-08-21 20:42:47 -0700
commit56176f00f59624ef1335175b3669081e2f3e83ed (patch)
tree055544710b0f2c6d422013784847efa591f3fc47 /src/glsl/ir_function.cpp
parent36efb86c0570d86d8dfce87fd2416125e0e91b40 (diff)
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.
Diffstat (limited to 'src/glsl/ir_function.cpp')
-rw-r--r--src/glsl/ir_function.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ir_function.cpp b/src/glsl/ir_function.cpp
index 0a97e01424..dfdec144b2 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)