mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 09:00:10 +01:00
glsl: Don't declare variables in for-loop declaration.
Reported-by: Brian Paul <brianp@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
58270c2fac
commit
c11096c749
1 changed files with 2 additions and 2 deletions
|
|
@ -411,9 +411,9 @@ static inline unsigned
|
||||||
exec_list_length(const struct exec_list *list)
|
exec_list_length(const struct exec_list *list)
|
||||||
{
|
{
|
||||||
unsigned size = 0;
|
unsigned size = 0;
|
||||||
|
struct exec_node *node;
|
||||||
|
|
||||||
for (struct exec_node *node = list->head; node->next != NULL;
|
for (node = list->head; node->next != NULL; node = node->next) {
|
||||||
node = node->next) {
|
|
||||||
size++;
|
size++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue