mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-04-10 12:09:17 +00:00
-std=qcc should error when the '=' is missing in a function declaration before the body
This commit is contained in:
parent
0fc3a0c517
commit
0bb90f284e
1 changed files with 3 additions and 0 deletions
3
parser.c
3
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;
|
||||
|
|
Loading…
Reference in a new issue