This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45411] New: Please add "-Wno-unused-variable" and friends compiler warning options
- From: "noloader at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Aug 2010 09:01:43 -0000
- Subject: [Bug c++/45411] New: Please add "-Wno-unused-variable" and friends compiler warning options
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hello,
"-Wno-unused-variable" and friends such as "-Wno-unused-parameter" would be
welcome additions for folks who like to use "-Wall" and "-Wextra".
Reasons it would be a good idea to include the "-no" forms:
(1) its easy to remember
(2) its easy to use
(3) when using "-Wall" and "-Wextra", the noise created by the various unused
warnings drowns out other issues which should get attention
(4) there's nothing intuitive about the 'unused' attribute so one might have to
actually RTFM
(5) I'm lazy and don't want to locate the applicable man page for the proper
usage of the 'unused' attribute
(6) the 'unused' attribute requires modifications to source files at all
applicable declarations (and non-use)
(7) makefile friendly solutions, such as "-Wno-unused-parameter", means one
only has to change one file
(8) I'm lazy and don't want to change every declaration with an 'unused'
attribute
(9) no easy way to control 'unused warning' spew is one of the biggest
complaints on the crypto++ mailing list when building for *nix
--
Summary: Please add "-Wno-unused-variable" and friends compiler
warning options
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: noloader at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45411