diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-parser.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8ee6b244fbc..0e5d28205b4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-01-19 Alexandre Oliva <aoliva@redhat.com> + + * c-parser.c (c_parser_for_statement): Initialize + collection_expression. + 2011-01-19 Joseph Myers <joseph@codesourcery.com> * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}. diff --git a/gcc/c-parser.c b/gcc/c-parser.c index 51df18886f4..69ce2e50bef 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -4759,7 +4759,9 @@ c_parser_for_statement (c_parser *parser) { tree block, cond, incr, save_break, save_cont, body; /* The following are only used when parsing an ObjC foreach statement. */ - tree object_expression, collection_expression; + tree object_expression; + /* Silence the bogus uninitialized warning. */ + tree collection_expression = NULL; location_t loc = c_parser_peek_token (parser)->location; location_t for_loc = c_parser_peek_token (parser)->location; bool is_foreach_statement = false; |