]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
fix a warning and remove unused variables
authorWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 19 Nov 2012 18:44:26 +0000 (19:44 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 19 Nov 2012 18:44:26 +0000 (19:44 +0100)
parser.c

index 6178a1d6d42b7e690b7a3554a3cedd3ed54bf29b..8dbd775c7973cf9608b17c6a98753c3ae269d22f 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1720,9 +1720,6 @@ static bool parse_return(parser_t *parser, ast_block *block, ast_expression **ou
 
 static bool parse_break_continue(parser_t *parser, ast_block *block, ast_expression **out, bool is_continue)
 {
-    ast_expression *exp = NULL;
-    ast_return     *ret = NULL;
-
     lex_ctx ctx = parser_ctx(parser);
 
     if (!parser_next(parser) || parser->tok != ';') {
@@ -1733,7 +1730,7 @@ static bool parse_break_continue(parser_t *parser, ast_block *block, ast_express
     if (!parser_next(parser))
         parseerror(parser, "parse error");
 
-    *out = ast_breakcont_new(ctx, is_continue);
+    *out = (ast_expression*)ast_breakcont_new(ctx, is_continue);
     return true;
 }