which -W option triggers unused variables warning?

Kamaraju S Kusumanchi kamaraju@bluebottle.com
Wed Jun 13 04:01:00 GMT 2007


Andrew Pinski wrote:

> 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.


OK! got it.

However there are some options that are repeated in gfortran even though
they do the same things in gcc as well. For example, consider the -w option
which inhibits all the warnings. It is present in both gcc and gfortran man
pages!

In any case, -Wno-unused solves my problem. So I will shut up now!

raju

-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/



More information about the Fortran mailing list