This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/24784] Warning about unused routine argument should not read "unused variable"
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2006 22:34:50 -0000
- Subject: [Bug fortran/24784] Warning about unused routine argument should not read "unused variable"
- References: <bug-24784-7427@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from dfranke at gcc dot gnu dot org 2006-11-30 22:34 -------
In addition to comment #2, it is to note, that "-W" alone does not give any
diagnostic at all.
Also, the FE emits different messages, if different flags are specified:
# -Wall
Warning: Unused variable x declared at (1)
^^^^^^^^
# -Wall -W
Warning: Unused parameter x declared at (1)
^^^^^^^^^
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24784