* c-parser.c (c_parser_for_statement): Initialize incr.

From-SVN: r165411
This commit is contained in:
Alexandre Oliva 2010-10-13 05:21:52 +00:00 committed by Alexandre Oliva
parent 187e3629ab
commit 3f6d4c520c
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2010-10-13 Alexandre Oliva <aoliva@redhat.com>
* c-parser.c (c_parser_for_statement): Initialize incr.
2010-10-12 Xinliang David Li <davidxl@google.com>
PR tree-optimization/45972

View File

@ -4538,6 +4538,9 @@ c_parser_for_statement (c_parser *parser)
/* Parse the initialization declaration or expression. */
cond = error_mark_node;
object_expression = error_mark_node;
/* Initializing incr should not be necessary, but it avoids
bogus warnings of uninitialized uses. */
incr = error_mark_node;
if (c_parser_next_token_is (parser, CPP_SEMICOLON))
{