summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-04-16 15:27:20 -0600
committerBrian Paul <[email protected]>2015-04-22 08:58:05 -0600
commitb260d9d91f84f26676cf8baf42c6df88678be668 (patch)
tree2740239763c0e550b020ad28bf6370cb390c76c0 /src
parent0b1823f5beeeb7a35e3addee071b31ac227734dc (diff)
main: silence missing return value warning in array_index_of_resource()
v2: return -1 instead of 0, per Emil Velikov. Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/shader_query.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp
index 336598d7799..bc6fec57d34 100644
--- 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;
}
}