projects
/
platform
/
upstream
/
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
3cc48ce
..
3ee6cda
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++;
}