This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/32247] -Wall enables -Wunused enables -Wunused-parameter
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2007 14:07:55 -0000
- Subject: [Bug java/32247] -Wall enables -Wunused enables -Wunused-parameter
- References: <bug-32247-11992@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from manu at gcc dot gnu dot org 2007-06-15 14:07 -------
(In reply to comment #7)
> Not really because this is a standard GCC option and having it different
> between java and other languages is wrong.
>
> http://gcc.gnu.org/onlinedocs/gcc-4.2.0/gcc/Warning-Options.html
>
> Please read the documentation before really filing a bug, really an unused
> parameter is wrong because it usually means either you have conditional code
> (which case you).
>
Actually neither -Wunused nor -Wall should enable -Wunused-parameter according
to the documentation. -Wunused-parameter is only enabled by:
1) -Wunused-parameter [+ anything]
2) -Wall -Wextra
3) -Wunused -Wextra
So either Java is doing something wrong or the documentation does not reflect
the actual behaviour (very likely as well).
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32247