This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/30438] Unused variable should raise warning with -Wunused



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]