From: Brian Paul Date: Thu, 16 Apr 2015 21:27:20 +0000 (-0600) Subject: main: silence missing return value warning in array_index_of_resource() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b260d9d91f84f26676cf8baf42c6df88678be668;p=mesa.git main: silence missing return value warning in array_index_of_resource() v2: return -1 instead of 0, per Emil Velikov. Reviewed-by: Anuj Phogat --- 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; } }