mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
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@gmail.com>
This commit is contained in:
parent
0b1823f5be
commit
b260d9d91f
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue