From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11902 invoked by alias); 15 Jun 2007 14:07:56 -0000 Received: (qmail 11886 invoked by uid 48); 15 Jun 2007 14:07:56 -0000 Date: Fri, 15 Jun 2007 14:07:00 -0000 Message-ID: <20070615140756.11885.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug java/32247] -Wall enables -Wunused enables -Wunused-parameter In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "manu at gcc dot gnu dot org" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2007-q2/txt/msg00174.txt.bz2 ------- 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