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.
This commit is contained in:
parent
36efb86c05
commit
56176f00f5
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue