summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-09-18 00:14:20 -0700
committerIan Romanick <[email protected]>2010-09-23 08:47:01 -0700
commit2db539844920f48ae83f145903a56d6debced4e8 (patch)
treef34f43ea1bc68907a5b13d3d781371c6c8a7e4b5 /src
parentee8a96707ac88d04d987b1d1b778e439079714be (diff)
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 (cherry picked from commit a822ae3f1a14ddd00a6368d767213ea42d00e7fb)
Diffstat (limited to 'src')
-rw-r--r--src/glsl/lower_variable_index_to_cond_assign.cpp1
1 files changed, 1 insertions, 0 deletions
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,