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:
@@ -196,6 +196,9 @@ ir_expression::get_num_operands(ir_expression_operation op)
|
|||||||
|
|
||||||
if (op <= ir_last_binop)
|
if (op <= ir_last_binop)
|
||||||
return 2;
|
return 2;
|
||||||
|
|
||||||
|
assert(false);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *const operator_strs[] = {
|
static const char *const operator_strs[] = {
|
||||||
|
Reference in New Issue
Block a user