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:
Matt Turner 2014-07-15 12:13:22 -07:00
parent 58270c2fac
commit c11096c749

View file

@ -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++;
} }