From: Wolfgang (Blub) Bumiller Date: Sat, 10 Nov 2012 11:00:45 +0000 (+0100) Subject: -std=qcc should error when the '=' is missing in a function declaration before the... X-Git-Tag: 0.1~19^2~55 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0bb90f284ea344c6c119886d188c378c02e7cd1e;p=xonotic%2Fgmqcc.git -std=qcc should error when the '=' is missing in a function declaration before the body --- diff --git a/parser.c b/parser.c index ab1abeb..53e1ffb 100644 --- a/parser.c +++ b/parser.c @@ -2643,6 +2643,9 @@ skipvar: break; } } + else if (opts_standard == COMPILER_QCC) { + parseerror(parser, "expected '=' before function body in this standard"); + } if (parser->tok == '#') { ast_function *func;