Suppress unused variable warning in stack iteration macro