From f023b7097f424deeb5c053544be078d5f602a732 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 12 Jun 2013 16:04:40 +0200 Subject: [PATCH] fix pedantic compile issue --- parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2