From: Wolfgang Bumiller Date: Wed, 12 Jun 2013 14:04:40 +0000 (+0200) Subject: fix pedantic compile issue X-Git-Tag: v0.3.0~141 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f023b7097f424deeb5c053544be078d5f602a732;p=xonotic%2Fgmqcc.git fix pedantic compile issue --- diff --git a/parser.c b/parser.c index 2b2ebe1..5b4ed65 100644 --- a/parser.c +++ b/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)