which -W option triggers unused variables warning?
Steve Kargl
sgk@troutmask.apl.washington.edu
Tue Jun 12 23:59:00 GMT 2007
On Tue, Jun 12, 2007 at 06:57:39PM -0400, Kamaraju S Kusumanchi wrote:
> I am using -Wall option while compiling the code using gfortran 4.2.0 on
> CentOS 4 system. However I am getting lot of warnings such as
>
> real(WP) :: q
> 1
> Warning: Unused variable q declared at (1)
>
> Can someone tell me
>
> 1) which -Wxxxx option triggers this warning?
>
> I looked in the man page of gfortran but that does not mention anything
> about warnings on unused variables.
>
> 2) Is there any way just to disable this one type of warning and enable all
> other warnings?
>
-Wno-unused
--
Steve
More information about the Fortran
mailing list