Commit 0d7d4951 by Kai Tietz Committed by Kai Tietz

resolve.c (resolve_deallocate_expr): Avoid warning about possible use of iunitialized sym.

2010-06-09  Kai Tietz  <kai.tietz@onevision.com>

        * fortran/resolve.c (resolve_deallocate_expr): Avoid warning
        about possible use of iunitialized sym.
        (resolve_allocate_expr): Pre-initialize sym by NULL.

From-SVN: r160464
parent 5d7eb7e2
2010-06-09 Kai Tietz <kai.tietz@onevision.com>
* fortran/resolve.c (resolve_deallocate_expr): Avoid warning
about possible use of iunitialized sym.
(resolve_allocate_expr): Pre-initialize sym by NULL.
* c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
2010-06-09 Martin Jambor <mjambor@suse.cz>
......
......@@ -6065,6 +6065,7 @@ resolve_deallocate_expr (gfc_expr *e)
bad:
gfc_error ("Allocate-object at %L must be ALLOCATABLE or a POINTER",
&e->where);
return FAILURE;
}
if (check_intent_in && sym->attr.intent == INTENT_IN)
......@@ -6196,7 +6197,7 @@ resolve_allocate_expr (gfc_expr *e, gfc_code *code)
symbol_attribute attr;
gfc_ref *ref, *ref2;
gfc_array_ref *ar;
gfc_symbol *sym;
gfc_symbol *sym = NULL;
gfc_alloc *a;
gfc_component *c;
gfc_expr *init_e;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment