This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: which -W option triggers unused variables warning?
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Kamaraju S Kusumanchi" <kamaraju at bluebottle dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Tue, 12 Jun 2007 20:46:28 -0700
- Subject: Re: which -W option triggers unused variables warning?
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; 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; b=MiWKrSW5QHGBXoH+4xaSPuss8Napgl0gnNS++WG3/SLaqCQHGFonSMPizpE9cS1pnaOaWFxy171RCA0fkUvURkMKEWN3x7UqO3QhJ4303yqQqP0m/JDdd8GtVKN6C/CHnLmNfUxK61ff4/oPF0qg/sQ4Chvl+KRZHwPMPXIas9s=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fMdTLwTuW3aG5RowyVuoSputcGwMHwTfS/5tkn3iK/w2JheP1Bx2QZZ+URsQJ4aykQOT1sJugUhIzgqFcUSeCYsT6j0VfT+2SmUQUctkScY+ugAhTLiaU4fX0Oph5BKvylomGmiT8zVVedye7TbJrh+7wOt3X2nA7f9d5abyxng=
- References: <f4n8eh$214$1@sea.gmane.org> <20070612235918.GA78844@troutmask.apl.washington.edu> <f4np3e$f59$1@sea.gmane.org>
On 6/12/07, Kamaraju S Kusumanchi <kamaraju@bluebottle.com> wrote:
Thanks for the reply. Any idea why this option is not documented in the
manpage?
It is documented.
The manpage says:
The gfortran command supports all the options supported by the
gcc command. Only
options specific to gfortran are documented here.
And then in the gcc manpage:
-Wunused
All the above -Wunused options combined.
In order to get a warning about an unused function
parameter, you must either
specify -Wextra -Wunused (note that -Wall implies
-Wunused), or separately
specify -Wunused-parameter.
Also:
Many options have long names starting with -f or with -W---for example,
-fstrength-reduce, -Wformat and so on. Most of these have both
positive and nega-
tive forms; the negative form of -ffoo would be -fno-foo. This
manual documents
only one of these two forms, whichever one is not the default.
-- Pinski