]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fix a warning
authorWolfgang Bumiller <blub@speed.at>
Sat, 26 Jan 2013 13:43:49 +0000 (14:43 +0100)
committerWolfgang Bumiller <blub@speed.at>
Sat, 26 Jan 2013 13:43:49 +0000 (14:43 +0100)
parser.c

index 1d13b737335db6e7d168b64dab2b202a1356f014..2e8652800e9c78cfef0c4227c8985e728be98bec 100644 (file)
--- 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;
         }
     }