Module: Mesa Branch: master Commit: f9fc3949e182cb2da8ce6d8d71f441986795664f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9fc3949e182cb2da8ce6d8d71f441986795664f
Author: Vinson Lee <[email protected]> Date: Fri Nov 7 15:33:41 2014 -0800 glsl/list: Move declaration before code. Fixes MSVC build error. shaderapi.c src\glsl\list.h(535) : error C2143: syntax error : missing ';' before 'type' src\glsl\list.h(535) : error C2143: syntax error : missing ')' before 'type' src\glsl\list.h(536) : error C2065: 'node' : undeclared identifier Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86025 Signed-off-by: Vinson Lee <[email protected]> --- src/glsl/list.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/glsl/list.h b/src/glsl/list.h old mode 100644 new mode 100755 index e4b063c..995c666 --- a/src/glsl/list.h +++ b/src/glsl/list.h @@ -524,6 +524,8 @@ exec_node_insert_list_before(struct exec_node *n, struct exec_list *before) static inline void exec_list_validate(const struct exec_list *list) { + const struct exec_node *node; + assert(list->head->prev == (const struct exec_node *) &list->head); assert(list->tail == NULL); assert(list->tail_pred->next == (const struct exec_node *) &list->tail); @@ -532,7 +534,7 @@ exec_list_validate(const struct exec_list *list) * either require C++ or assume the exec_node is embedded in a structure * which is not the case for this function. */ - for (const struct exec_node *node = exec_list_get_head_const(list); + for (node = exec_list_get_head_const(list); !exec_node_is_tail_sentinel(node); node = exec_node_get_next_const(node)) { assert(node->next->prev == node); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
