projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ea2a3a
)
glsl: Fix 'control reaches end of non-void function' warning.
author
Vinson Lee
<vlee@vmware.com>
Sat, 18 Sep 2010 07:14:20 +0000
(
00:14
-0700)
committer
Vinson Lee
<vlee@vmware.com>
Sat, 18 Sep 2010 07:14:20 +0000
(
00:14
-0700)
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
src/glsl/lower_variable_index_to_cond_assign.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/lower_variable_index_to_cond_assign.cpp
b/src/glsl/lower_variable_index_to_cond_assign.cpp
index 2044199d27b1d6f8a06addb75eae4f5d167f2ed6..68f30ca0ef8c7e63b68c1df981e8a3de64efc99d 100644
(file)
--- 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,