From b260d9d91f84f26676cf8baf42c6df88678be668 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 16 Apr 2015 15:27:20 -0600 Subject: [PATCH] main: silence missing return value warning in array_index_of_resource() v2: return -1 instead of 0, per Emil Velikov. Reviewed-by: Anuj Phogat --- 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 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; } } -- 2.30.2