summaryrefslogtreecommitdiff
path: root/gcc/c-parser.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-19 21:59:47 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-19 21:59:47 +0000
commit65d95190522a92267349bc7c54dbdc3d9f89e0f3 (patch)
tree5f01bb9cb03a1102e208c7eb044db6364bae37c5 /gcc/c-parser.c
parentb30dab902acde202d9867ac681ac4ba0ace2a845 (diff)
downloadgcc-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.c4
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;