[Bug fortran/30438] Unused variable should raise warning with -Wunused
aldot at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jan 15 09:15:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list