projects
/
xonotic
/
gmqcc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fc3a0c
)
-std=qcc should error when the '=' is missing in a function declaration before the...
author
Wolfgang (Blub) Bumiller <blub@speed.at>
Sat, 10 Nov 2012 11:00:45 +0000
(12:00 +0100)
committer
Wolfgang (Blub) Bumiller <blub@speed.at>
Sun, 11 Nov 2012 09:13:00 +0000
(10:13 +0100)
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/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;