diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2010-10-13 05:21:52 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2010-10-13 05:21:52 +0000 |
commit | 3f6d4c520c14a9cf688ac59f8d8f8a48f61ef314 (patch) | |
tree | 86e5a755782c4436bcaa3ff48cc94f030d55c8c0 /gcc | |
parent | 187e3629abd627dcebadba44e6b4a69d1e71b80e (diff) | |
download | gcc-3f6d4c520c14a9cf688ac59f8d8f8a48f61ef314.zip gcc-3f6d4c520c14a9cf688ac59f8d8f8a48f61ef314.tar.gz gcc-3f6d4c520c14a9cf688ac59f8d8f8a48f61ef314.tar.bz2 |
* c-parser.c (c_parser_for_statement): Initialize incr.
From-SVN: r165411
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-parser.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9e11f72..fe28f76 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/c-parser.c b/gcc/c-parser.c index eb78448..3953cc6 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -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)) { |