diff options
author | Matt Turner <mattst88@gmail.com> | 2014-07-15 12:13:22 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-07-15 12:17:48 -0700 |
commit | c11096c7497d12b54ace8709e696fcb823de9444 (patch) | |
tree | a36c8729e18cf8564ad540b9b42f2d3325315e4e | |
parent | 58270c2fac493497ed7923830f49051a53e86a07 (diff) |
glsl: Don't declare variables in for-loop declaration.
Reported-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r-- | src/glsl/list.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/list.h b/src/glsl/list.h index 3cc48cef644..3ee6cdaa9a9 100644 --- a/src/glsl/list.h +++ b/src/glsl/list.h @@ -411,9 +411,9 @@ static inline unsigned exec_list_length(const struct exec_list *list) { unsigned size = 0; + struct exec_node *node; - for (struct exec_node *node = list->head; node->next != NULL; - node = node->next) { + for (node = list->head; node->next != NULL; node = node->next) { size++; } |