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

noloader at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Aug 26 14:55:00 GMT 2010



------- Comment #4 from noloader at gmail dot com  2010-08-26 14:54 -------
> You didn't say which version of GCC you're using, but it doesn't really matter
> because these options have been in place for many years.
Moot point indeed!  But for completeness....
$ gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
$  uname -a
Linux studio 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:38:40 UTC 2010
x86_64 GNU/Linux

> (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).

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

JW


-- 


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



More information about the Gcc-bugs mailing list