[Mesa-dev] [PATCH 1/3] main: silence missing return value warning in array_index_of_resource()

Brian Paul brianp at vmware.com
Thu Apr 16 14:52:36 PDT 2015


---
 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 b5f1d08..ad936e5 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 0;
    }
 }
 
-- 
1.9.1



More information about the mesa-dev mailing list