This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: On 'unused parameter' warnings
- From: Daniel Franke <franke dot daniel at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Cc: Angelo Graziosi <Angelo dot Graziosi at roma1 dot infn dot it>, Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Date: Sun, 29 Jul 2007 11:07:15 +0200
- Subject: Re: On 'unused parameter' warnings
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=Pstjo5sNCEAnubG6OzK27/XoenNVDRDYkmy1sS3u6zyX7qEZrxKTm2lSSVIw0o1DtfqGwnaz66VSp+Qj3oPlNSNDRoOEwpL9rZAbAy3z9f1jcVE2KV/NHKrTcQmN5hMlXaj/lqul+RbyuwpAbAPS0fcI0HXKY7SgLdRrqm+1G6A=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=Ip6NaZrlIMV0HJgPcUYwgXFZebbprxNMa65KmVgOZVLztSL2CdyMl3pMTSynR/DCeih/jEzp4+yeHiBRwt4SduufBEuwJk3mPtjE0ld6nEYaxZ+buaeruc4NFf42pHYgCCsB1ojf+ChX8+sZr2h4nPmsHJyndHkMI+y9+St6CeY=
- References: <Pine.OSF.4.58.0707290112300.15621@ax0rm1.roma1.infn.it> <20070729054034.GA89993@troutmask.apl.washington.edu> <Pine.OSF.4.58.0707290838450.30577@ax0rm1.roma1.infn.it>
On Sunday 29 July 2007 08:49:05 Angelo Graziosi wrote:
Angelo,
> > 2) use -w.
>
> Where this option is documented ?
>
> I have found it only cited here:
> http://gcc.gnu.org/onlinedocs/gfortran/Option-Summary.html#Option-Summary
That's a common option, documented by gcc. The -w shouldn't be in that list.
I'll remove it. Thanks for mentioning it :)
> Sometimes ago the (annoying) problem of 'unused parameter' regarded also
> G95 and the author introduced '-Wunused-parameter' to use when one want
> those warnings.
Try -Wno-unused-variable.
Btw, it would help if could quote a piece of code and the exact message :)
Regards
Daniel