Mesa (master): main: silence missing return value warning in array_index_of_resource()
Brian Paul
brianp at kemper.freedesktop.org
Wed Apr 22 14:57:21 UTC 2015
Module: Mesa
Branch: master
Commit: b260d9d91f84f26676cf8baf42c6df88678be668
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b260d9d91f84f26676cf8baf42c6df88678be668
Author: Brian Paul <brianp at vmware.com>
Date: Thu Apr 16 15:27:20 2015 -0600
main: silence missing return value warning in array_index_of_resource()
v2: return -1 instead of 0, per Emil Velikov.
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
---
src/mesa/main/shader_query.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp
index 336598d..bc6fec5 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;
}
}
More information about the mesa-commit
mailing list