]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
-std=qcc should error when the '=' is missing in a function declaration before the...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 10 Nov 2012 11:00:45 +0000 (12:00 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 11 Nov 2012 09:13:00 +0000 (10:13 +0100)
parser.c

index ab1abeb77ef4861e2eae0e537a11c119bd76e3c1..53e1ffbf271eda0e75bb5eeddbb5504ecb148c2d 100644 (file)
--- 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;