This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30438] Unused variable should raise warning with -Wunused
- From: "aldot at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2007 09:15:20 -0000
- Subject: [Bug fortran/30438] Unused variable should raise warning with -Wunused
- References: <bug-30438-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from aldot at gcc dot gnu dot org 2007-01-15 09:15 -------
(In reply to comment #2)
> The variable is set but not read from.
> There is another bug about this for the C/C++ front-ends and a new option for
> this case instead of just using -Wunused.
>
> I would considered t in comment #1 as being used as it is set.
I'd prefer this to be diagnosed to be "set but never used" in Fortran and C
along the lines of the "value computed is not used" diagnostics that is emitted
in C.
--
aldot at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aldot at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30438