Message ID | 4F0320E2.3090802@netcologne.de |
---|---|
State | New |
Headers | show |
Index: trans-common.c =================================================================== --- trans-common.c (Revision 182754) +++ trans-common.c (Arbeitskopie) @@ -689,7 +689,9 @@ create_common (gfc_common_head *com, segment_info VAR_DECL, DECL_NAME (s->field), TREE_TYPE (s->field)); TREE_STATIC (var_decl) = TREE_STATIC (decl); - TREE_USED (var_decl) = TREE_USED (decl); + /* Mark the variable as used in order to avoid warnings about + unused variables. */ + TREE_USED (var_decl) = 1; if (s->sym->attr.use_assoc) DECL_IGNORED_P (var_decl) = 1; if (s->sym->attr.target)