This is the mail archive of the gcc-patches@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]

Re: [RFA] -Wunused -> -Wunused{,-{function,label,parameter,variable,value}}]


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)

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