This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]