This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/54997] [4.8 Regression] -Wunused-function gives false warnings
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 Oct 2012 12:58:48 +0000
- Subject: [Bug fortran/54997] [4.8 Regression] -Wunused-function gives false warnings
- Auto-submitted: auto-generated
- References: <bug-54997-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54997
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|-Wunused-function gives |[4.8 Regression]
|false warnings for |-Wunused-function gives
|procedures passed as actual |false warnings
|argument |
--- Comment #6 from janus at gcc dot gnu.org 2012-10-22 12:58:48 UTC ---
First, I forgot to mention that the behavior described in comment 0 is a 4.8
regression.
Second, there is another case which still gives bogus warnings (also a
regression), and that is ENTRY:
subroutine sub
entry en
end subroutine
Compiling this with -Wunused-function yields:
warning: âmaster.0.subâ defined but not used [-Wunused-function]
subroutine sub
^