From: Vinson Lee Date: Sat, 18 Sep 2010 07:14:20 +0000 (-0700) Subject: glsl: Fix 'control reaches end of non-void function' warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a822ae3f1a14ddd00a6368d767213ea42d00e7fb;p=mesa.git glsl: Fix 'control reaches end of non-void function' warning. Fixes this GCC warning. lower_variable_index_to_cond_assign.cpp: In member function 'bool variable_index_to_cond_assign_visitor::needs_lowering(ir_dereference_array*) const': lower_variable_index_to_cond_assign.cpp:261: warning: control reaches end of non-void function --- diff --git a/src/glsl/lower_variable_index_to_cond_assign.cpp b/src/glsl/lower_variable_index_to_cond_assign.cpp index 2044199d27b..68f30ca0ef8 100644 --- a/src/glsl/lower_variable_index_to_cond_assign.cpp +++ b/src/glsl/lower_variable_index_to_cond_assign.cpp @@ -258,6 +258,7 @@ public: } assert(!"Should not get here."); + return false; } ir_variable *convert_dereference_array(ir_dereference_array *orig_deref,