http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54224
--- Comment #13 from janus at gcc dot gnu.org 2012-10-19 17:48:50 UTC --- (In reply to comment #12) > Leftover things to check/fix: > * unused-warnings for internal procedues Test case: module m private contains subroutine s1 contains subroutine s2 end subroutine end subroutine end module program test contains subroutine s3 end subroutine end With -Wunused-function, gfortran currently only warns for s1, but not for s2 and s3. (With 4.7, no warning is thrown at all.)