mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
ca9f99d9c5
commit
855c66bde7
1 changed files with 3 additions and 0 deletions
|
|
@ -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[] = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue