[Bug fortran/31124] New: Warn of unused PRIVATE module variables/procedures
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Mar 10 19:34:00 GMT 2007
As suggested at
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/a19c9fdd1503e9c5/
While gfortran does not has this kind of warning, g95 -Wextra warns:
In file crud.f90:5
integer, parameter :: one = 1
1
Warning (159): PARAMETER 'one' at (1) is never used
In file crud.f90:11
subroutine bar()
1
Warning (167): PRIVATE module procedure 'bar' at (1) is never invoked
for the following file
module crud_mod
implicit none
private
public :: foo
integer, parameter :: one = 1
contains
subroutine foo()
print*,"foo"
end subroutine foo
!
subroutine bar()
print*,"bar"
end subroutine bar
end module crud_mod
--
Summary: Warn of unused PRIVATE module variables/procedures
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31124
More information about the Gcc-bugs
mailing list