diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2011-01-19 21:59:47 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2011-01-19 21:59:47 +0000 |
commit | 689f2c8206c0dae466e89ee3268179e8b1a6ddee (patch) | |
tree | 5f01bb9cb03a1102e208c7eb044db6364bae37c5 /gcc/c-parser.c | |
parent | 966082b6c475918a4155315cd53dec7a6ff4e529 (diff) | |
download | gcc-689f2c8206c0dae466e89ee3268179e8b1a6ddee.zip gcc-689f2c8206c0dae466e89ee3268179e8b1a6ddee.tar.gz gcc-689f2c8206c0dae466e89ee3268179e8b1a6ddee.tar.bz2 |
c-parser.c (c_parser_for_statement): Initialize collection_expression.
* c-parser.c (c_parser_for_statement): Initialize
collection_expression.
From-SVN: r169033
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r-- | gcc/c-parser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c index 51df188..69ce2e5 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; |