main: silence missing return value warning in array_index_of_resource()
authorBrian Paul <brianp@vmware.com>
Thu, 16 Apr 2015 21:27:20 +0000 (15:27 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 22 Apr 2015 14:58:05 +0000 (08:58 -0600)
v2: return -1 instead of 0, per Emil Velikov.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/shader_query.cpp

index 336598d779909d997bb568085509fe0ddcb06bea..bc6fec57d3461b48eedbbb33e4de3de504eea7eb 100644 (file)
@@ -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;
    }
 }