PR fortran/14568
* trans-decl.c (generate_local_decl): Don't warn for unused
variables which are in common blocks.
From-SVN: r81837
+2004-04-22 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
+
+ PR fortran/14568
+ * trans-decl.c (generate_local_decl): Don't warn for unused
+ variables which are in common blocks.
+
2004-05-13 Diego Novillo <dnovillo@redhat.com>
* Make-lang.in, f95-lang.c, trans-array.c, trans-decl.c,
if (warn_unused_parameter)
warning ("unused parameter `%s'", sym->name);
}
- else if (warn_unused_variable)
+ /* warn for unused variables, but not if they're inside a common
+ block. */
+ else if (warn_unused_variable && !sym->attr.in_common)
warning ("unused variable `%s'", sym->name);
}
}