summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-11-17 22:42:51 -0800
committerVinson Lee <[email protected]>2010-11-17 22:43:52 -0800
commit855c66bde7e51c3486e4c6abc7096a1a949a98e1 (patch)
tree25ad09b130c7e0f65cfd161be98dc361edd35140
parentca9f99d9c5d75decb73bbc5b046c2055410504ff (diff)
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
-rw-r--r--src/glsl/ir.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index 4468d9f8324..8c5441d332b 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -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[] = {