]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Make the >8 parameter message a warning
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 18 Nov 2012 18:19:38 +0000 (19:19 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 18 Nov 2012 18:19:38 +0000 (19:19 +0100)
parser.c

index c4cdf2f89f88114af5c31d89ec3261e97bb0f475..600b088008d33e9472db1c57988cebb31d7b9f57 100644 (file)
--- 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)) {