summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/list.h')
-rw-r--r--src/compiler/glsl/list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/list.h b/src/compiler/glsl/list.h
index f77fe12991c..2bfa2735544 100644
--- a/src/compiler/glsl/list.h
+++ b/src/compiler/glsl/list.h
@@ -647,12 +647,12 @@ inline void exec_node::insert_before(exec_list *before)
#endif
#define foreach_in_list(__type, __inst, __list) \
- for (__type *(__inst) = (__type *)(__list)->head_sentinel.next; \
+ for (__type *__inst = (__type *)(__list)->head_sentinel.next; \
!(__inst)->is_tail_sentinel(); \
(__inst) = (__type *)(__inst)->next)
#define foreach_in_list_reverse(__type, __inst, __list) \
- for (__type *(__inst) = (__type *)(__list)->tail_sentinel.prev; \
+ for (__type *__inst = (__type *)(__list)->tail_sentinel.prev; \
!(__inst)->is_head_sentinel(); \
(__inst) = (__type *)(__inst)->prev)