This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA] -Wunused -> -Wunused{,-{function,label,parameter,variable,value}}]
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [RFA] -Wunused -> -Wunused{,-{function,label,parameter,variable,value}}]
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Fri, 12 May 2000 20:53:51 +0200
- CC: Gavin Romig-Koch <gavin at cygnus dot com>,Jeffrey A Law <law at cygnus dot com>,GCC Patches <gcc-patches at gcc dot gnu dot org>
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <38D70CF0.871FAEEE@cygnus.com> <14551.36634.877799.668803@cetus.cygnus.com> <390FE50C.AAD4ECB1@cygnus.com> <391A1387.6945AA35@cygnus.com>
Andrew Cagney wrote:
> FYI, I think I still need a thumbs up from the Fortran, Java, Chill
> maintainers.
> > Wed May 3 12:07:30 2000 Andrew Cagney <cagney@b1.cygnus.com>
> >
> > * flags.h (warn_unused_function, warn_unused_label,
> > warn_unused_parameter, warn_unused_variable, warn_unused_value):
> > Replace ``warn_unused''.
> > (set_Wunused): Add declaration.
> > * toplev.c (set_Wunused): New function.
> > (warn_unused_function, warn_unused_label, warn_unused_parameter,
> > warn_unused_variable, warn_unused_value): New variables.
> > (W_options): Add -Wunused-function, -Wunused-function,
> > -Wunused-label, -Wunused-parameter, -Wunused-variable and
> > -Wunused-value. Delete -Wunused. Handled in decode_W_option.
Note: I didn't try the patch - I'm just commenting that I do not oppose
this change.
However, did you consider keeping -Wunused for, say, one release as a
"container" option; the inclusive or of the above separated-out options
?
Cheers,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)
- References:
- Re: [RFA] -Wunused -> -Wunused{,-{function,label,parameter,variable,value}}]
- Re: [RFA] -Wunused -> -Wunused{,-{function,label,parameter,variable,value}}]