This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gfortran warnings about unused dummy argument
- From: "Julian Cummings" <cummings at socal dot rr dot com>
- To: <gcc-bugs at gcc dot gnu dot org>
- Date: Thu, 5 Feb 2009 13:47:05 -0800
- Subject: gfortran warnings about unused dummy argument
I am using gcc 4.3.2 on a Linux x86_64 system, compiling *.f and *.f90
source code files with gfortran and using the -Wall option. I am getting
several warnings about unused dummy arguments in my code. The warnings are
valid, but I would like to suppress them because they are non-trivial to
correct in the code. The gcc 4.3 gfortran manual seems to imply that
gfortran, unlike the gcc compiler, does not warn about unused dummy
arguments.
-Wunused-parameter
Contrary to gcc's meaning of -Wunused-parameter, gfortran's implementation
of this option does not warn about unused dummy arguments, but about unused
PARAMETER values. -Wunused-parameter is not included in -Wall but is implied
by -Wall -Wextra.
In any event, is there a gfortran option to specifically suppress warnings
about unused dummy arguments? I still want to receive warnings about unused
local variables.
Thanks, Julian C.
---
Dr. Julian C. Cummings
Staff Scientist, Caltech/CACR
cummings@cacr.caltech.edu