mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-21 10:21:03 +00:00
'static' shouldn't be accepted in the global scope for now
This commit is contained in:
parent
30eac57199
commit
3429e7d0cb
1 changed files with 2 additions and 2 deletions
4
parser.c
4
parser.c
|
@ -2750,7 +2750,7 @@ static bool parse_qualifiers(parser_t *parser, bool with_local, int *cvq, bool *
|
|||
else if (!strcmp(parser_tokval(parser), "deprecated") && !(flags & AST_FLAG_DEPRECATED)) {
|
||||
flags |= AST_FLAG_DEPRECATED;
|
||||
*message = NULL;
|
||||
|
||||
|
||||
if (!parser_next(parser)) {
|
||||
parseerror(parser, "parse error in attribute");
|
||||
goto argerr;
|
||||
|
@ -2803,7 +2803,7 @@ static bool parse_qualifiers(parser_t *parser, bool with_local, int *cvq, bool *
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (!strcmp(parser_tokval(parser), "static"))
|
||||
else if (with_local && !strcmp(parser_tokval(parser), "static"))
|
||||
had_static = true;
|
||||
else if (!strcmp(parser_tokval(parser), "const"))
|
||||
had_const = true;
|
||||
|
|
Loading…
Reference in a new issue