mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
fix a warning and remove unused variables
This commit is contained in:
parent
8ac689c03a
commit
b72900214b
1 changed files with 1 additions and 4 deletions
5
parser.c
5
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue