From: Wolfgang Bumiller Date: Sat, 26 Jan 2013 13:43:49 +0000 (+0100) Subject: Fix a warning X-Git-Tag: before-library~215 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=edfe340d09dc9eac89e3b16b393a503bdc6a1cb8;p=xonotic%2Fgmqcc.git Fix a warning --- 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; } }