From: Wolfgang (Blub) Bumiller Date: Sun, 18 Nov 2012 18:19:38 +0000 (+0100) Subject: Make the >8 parameter message a warning X-Git-Tag: 0.1.9~404^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e8d1e5dbc0fdbc87d5ce3a0285a0e3df4a2a4728;p=xonotic%2Fgmqcc.git Make the >8 parameter message a warning --- diff --git a/parser.c b/parser.c index c4cdf2f..600b088 100644 --- a/parser.c +++ b/parser.c @@ -2637,8 +2637,8 @@ static ast_value *parse_parameter_list(parser_t *parser, ast_value *var) } /* sanity check */ - if (vec_size(params) > 8) - parseerror(parser, "more than 8 parameters are currently not supported"); + if (vec_size(params) > 8 && opts_standard == COMPILER_QCC) + parsewarning(parser, WARN_EXTENSIONS, "more than 8 parameters are not supported by this standard"); /* parse-out */ if (!parser_next(parser)) {