mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-11 03:13:06 +00:00
another -Wextensions situation: -std=qcc has no for loops
This commit is contained in:
parent
ae5dba3e0b
commit
ca1c9b921d
1 changed files with 4 additions and 0 deletions
4
parser.c
4
parser.c
|
@ -1378,6 +1378,10 @@ static bool parser_parse_statement(parser_t *parser, ast_block *block, ast_expre
|
|||
}
|
||||
else if (!strcmp(parser_tokval(parser), "for"))
|
||||
{
|
||||
if (opts_standard == COMPILER_QCC) {
|
||||
if (parsewarning(parser, WARN_EXTENSIONS, "there's no for-loop in -std=qcc"))
|
||||
return false;
|
||||
}
|
||||
return parser_parse_for(parser, block, out);
|
||||
}
|
||||
parseerror(parser, "Unexpected keyword");
|
||||
|
|
Loading…
Reference in a new issue