mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-25 20:11:24 +00:00
fix pedantic compile issue
This commit is contained in:
parent
2c59385633
commit
f023b7097f
1 changed files with 2 additions and 1 deletions
3
parser.c
3
parser.c
|
@ -5218,6 +5218,7 @@ static bool create_array_accessors(parser_t *parser, ast_value *var)
|
|||
|
||||
static bool parse_array(parser_t *parser, ast_value *array)
|
||||
{
|
||||
size_t i;
|
||||
if (array->initlist) {
|
||||
parseerror(parser, "array already initialized elsewhere");
|
||||
return false;
|
||||
|
@ -5226,7 +5227,7 @@ static bool parse_array(parser_t *parser, ast_value *array)
|
|||
parseerror(parser, "parse error in array initializer");
|
||||
return false;
|
||||
}
|
||||
size_t i = 0;
|
||||
i = 0;
|
||||
while (parser->tok != '}') {
|
||||
ast_value *v = (ast_value*)parse_expression_leave(parser, true, false, false);
|
||||
if (!v)
|
||||
|
|
Loading…
Reference in a new issue