This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: PR [C/C++/Fortran/Java] 28875 "-Wextra -Wno-unused-parameter -Wall" doesn't work as expected
- From: "Manuel López-Ibáñez" <lopezibanez at gmail dot com>
- To: "Andreas Schwab" <schwab at suse dot de>
- Cc: "Gcc Patch List" <gcc-patches at gcc dot gnu dot org>, "fortran at gcc dot gnu dot org List" <fortran at gcc dot gnu dot org>
- Date: Sat, 9 Aug 2008 11:39:32 +0200
- Subject: Re: PR [C/C++/Fortran/Java] 28875 "-Wextra -Wno-unused-parameter -Wall" doesn't work as expected
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=1LlZ0NRHhGXSiReyArkQnkIArhuKngF26ZIawfMduRA=; b=b5hnWYWYAUFEO0gc5F/mRrhupk5bM6oaW8P6uzMdLIr1v4cUng/goQ/zG/JliI7tAq s7qpojAXYqJD1QQMuR6xKPaf0Myc8Bt6Za7geL/CQdE477+l56yREenrzdeJ4cZfsV+X bhHb4u2MlEYZVlIFgrskKqJqoqvFK2hfA8UDY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=nWvOv4srEidBkawCyZIq3q6e3c1clIlTqksph6SHLcWPeqVmFqj/a56f6yN2RAPKq9 hpF/OOFddOZuUcr7mEgbRCTECOGuZCMZPKMJhtSXX1yf/Xm4nEIsKQWCg5h3G2O2r5Ku lr4+8Jn1/43EaMkR1pKT6O0u1LTnXaX24RCa0=
- References: <6c33472e0808080409r6fe9a338p3744b69db6331df7@mail.gmail.com> <je3aley4b1.fsf@sykes.suse.de>
2008/8/9 Andreas Schwab <schwab@suse.de>:
> "Manuel López-Ibáñez" <lopezibanez@gmail.com> writes:
>
>> This fixes 28875 and makes the whole handling of Wunused much less complicated.
>>
>> Bootstrapped and regression tested on x86_64-unknown-linux-gnu with
>> --enable-languages=all.
>>
>> OK for trunk?
>
> Next time please grep the whole source tree.
>
> ada/misc.o: In function `gnat_handle_option':
> ../../gcc/ada/gcc-interface/misc.c:243: undefined reference to `set_Wunused'
>
Fixed by committing as obvious (rev 138903):
2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
by warn_unused.
Apologies for the oversight.
Manuel.