[Bug c++/45411] Please add "-Wno-unused-variable" and friends compiler warning options

redi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Aug 26 15:09:00 GMT 2010



------- Comment #5 from redi at gcc dot gnu dot org  2010-08-26 15:09 -------
(In reply to comment #4)
> 
> > (In reply to comment #0)
> >> (5) I'm lazy and don't want to locate the applicable man page
> 
> > Here it is:
> > http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
> Interesting. I was going to cite the same page.
> 
> Searching for "-Wno-unused-parameter" on the page returns 0 results. Under
> "-Wunused-parameter", the page states, "Warn whenever a function parameter is
> unused aside from its declaration. To suppress this warning use the `unused'
> attribute (see Variable Attributes)." (But no mention of
> -Wno-unused-parameter).

Near the top of the page, in the paragraph beginning "you can request" it says:

"Each of these specific warning options also has a negative form beginning
`-Wno-' to turn off warnings; for example, -Wno-implicit. This manual lists
only one of the two forms, whichever is not the default."

It would be a waste of time to say it on every option.

> Since I feel like a total ass, perhaps someone can close this feature request.

It's closed :-)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45411



More information about the Gcc-bugs mailing list