Suppress unused variable warning in stack iteration macro

This commit is contained in:
Max Brunsfeld 2014-09-01 14:16:27 -07:00
parent d38f095f01
commit db295cebbc

View file

@ -28,6 +28,7 @@ size_t ts_stack_right_position(const TSStack *stack);
#define TS_STACK_FROM_TOP(stack, entry, index) \
size_t index = stack.size - 1; \
(void)index; \
for (TSStackEntry *entry = stack.entries + stack.size - 1; \
entry >= stack.entries; entry-- && index--)