From edfe340d09dc9eac89e3b16b393a503bdc6a1cb8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sat, 26 Jan 2013 14:43:49 +0100 Subject: [PATCH] Fix a warning --- parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser.c b/parser.c index 1d13b73..2e86528 100644 --- a/parser.c +++ b/parser.c @@ -2680,12 +2680,12 @@ static bool parse_for_go(parser_t *parser, ast_block *block, ast_expression **ou /* parse the incrementor */ if (parser->tok != ')') { - lex_ctx ctx = parser_ctx(parser); + lex_ctx condctx = parser_ctx(parser); increment = parse_expression_leave(parser, false, false, false); if (!increment) goto onerr; if (!ast_side_effects(increment)) { - if (compile_warning(ctx, WARN_EFFECTLESS_STATEMENT, "statement has no effect")) + if (compile_warning(condctx, WARN_EFFECTLESS_STATEMENT, "statement has no effect")) goto onerr; } } -- 2.39.2