From b72900214b77d7cea2f244e147d41a11c4272b12 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Mon, 19 Nov 2012 19:44:26 +0100 Subject: [PATCH] fix a warning and remove unused variables --- parser.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/parser.c b/parser.c index 6178a1d..8dbd775 100644 --- 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; } -- 2.39.2