projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b1823f
)
main: silence missing return value warning in array_index_of_resource()
author
Brian Paul
<brianp@vmware.com>
Thu, 16 Apr 2015 21:27:20 +0000
(15:27 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 22 Apr 2015 14:58:05 +0000
(08:58 -0600)
v2: return -1 instead of 0, per Emil Velikov.
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/shader_query.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/main/shader_query.cpp
b/src/mesa/main/shader_query.cpp
index 336598d779909d997bb568085509fe0ddcb06bea..bc6fec57d3461b48eedbbb33e4de3de504eea7eb 100644
(file)
--- a/
src/mesa/main/shader_query.cpp
+++ b/
src/mesa/main/shader_query.cpp
@@
-537,6
+537,7
@@
array_index_of_resource(struct gl_program_resource *res,
return get_matching_index(RESOURCE_VAR(res), name);
default:
assert(!"support for resource type not implemented");
+ return -1;
}
}