projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58270c2
)
glsl: Don't declare variables in for-loop declaration.
author
Matt Turner
<mattst88@gmail.com>
Tue, 15 Jul 2014 19:13:22 +0000
(12:13 -0700)
committer
Matt Turner
<mattst88@gmail.com>
Tue, 15 Jul 2014 19:17:48 +0000
(12:17 -0700)
Reported-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/glsl/list.h
patch
|
blob
|
history
diff --git
a/src/glsl/list.h
b/src/glsl/list.h
index 3cc48cef644660944e7f3b1dcbb88bd48a0e9c70..3ee6cdaa9a97579efa2c9e693cf3c7a1cd50648e 100644
(file)
--- 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++;
}