From: Wolfgang (Blub) Bumiller Date: Tue, 14 Aug 2012 14:14:26 +0000 (+0200) Subject: eof after parsing the semicolon of a function declaration shouldn't be an error... X-Git-Tag: 0.1-rc1~308 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cc48802685c44cdfb1ce5346b3a4dad1a62ec1a7;p=xonotic%2Fgmqcc.git eof after parsing the semicolon of a function declaration shouldn't be an error... --- diff --git a/parser.c b/parser.c index eaa5dd1..60857df 100644 --- a/parser.c +++ b/parser.c @@ -1622,7 +1622,7 @@ static bool parser_variable(parser_t *parser, ast_block *localblock) } if (parser->tok == ';') - return parser_next(parser); + return parser_next(parser) || parser->tok == TOKEN_EOF; else if (opts_standard == COMPILER_QCC) parseerror(parser, "missing semicolon after function body (mandatory with -std=qcc)"); return true;