glsl: Fix 'control reaches end of non-void function' warning.

Fix this GCC warning.
ir.cpp: In static member function
'static unsigned int ir_expression::get_num_operands(ir_expression_operation)':
ir.cpp:199: warning: control reaches end of non-void function
This commit is contained in:
Vinson Lee
2010-11-17 22:42:51 -08:00
parent ca9f99d9c5
commit 855c66bde7

View File

@@ -196,6 +196,9 @@ ir_expression::get_num_operands(ir_expression_operation op)
if (op <= ir_last_binop)
return 2;
assert(false);
return 0;
}
static const char *const operator_strs[] = {