[Bug fortran/18111] spurious warnings with -W -Wunused

martin at mpa-garching dot mpg dot de gcc-bugzilla@gcc.gnu.org
Tue Oct 26 11:15:00 GMT 2004


------- Additional Comments From martin at mpa-garching dot mpg dot de  2004-10-26 11:15 -------
The patch indeed supresses the warnings about .__result.
But the problem appears to be more general. The following code
still generates a warning:

module linebufmod
implicit none
private

public linebuf_set

contains

subroutine linebuf_set (orig)
  character(len=80), dimension(:), intent(in) :: orig
  print *,orig
end subroutine linebuf_set

end module linebufmod

~/tmp>gfortran -W -Wunused -c gfbug.f90
gfbug.f90:5: warning: unused parameter '_orig'

It seems that it is issued for all array-shaped arguments of a
subroutine/function which is referenced in an interface statement or
something similar.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18111



More information about the Gcc-bugs mailing list