diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-19 21:59:47 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-19 21:59:47 +0000 |
commit | 65d95190522a92267349bc7c54dbdc3d9f89e0f3 (patch) | |
tree | 5f01bb9cb03a1102e208c7eb044db6364bae37c5 /gcc/c-parser.c | |
parent | b30dab902acde202d9867ac681ac4ba0ace2a845 (diff) | |
download | gcc-65d95190522a92267349bc7c54dbdc3d9f89e0f3.tar.gz |
* c-parser.c (c_parser_for_statement): Initialize
collection_expression.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169033 138bc75d-0d04-0410-961f-82ee72b054a4
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 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; |