This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/54997] -Wunused-function gives false warnings for procedures passed as actual argument
- 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: Sat, 20 Oct 2012 08:58:19 +0000
- Subject: [Bug fortran/54997] -Wunused-function gives false warnings for procedures passed as actual argument
- Auto-submitted: auto-generated
- References: <bug-54997-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54997
--- Comment #1 from janus at gcc dot gnu.org 2012-10-20 08:58:19 UTC ---
(In reply to comment #0)
> Obviously s3 is not being called directly, but it is passed to s2, so it's
> certainly not unused.
Well, to be honest, 'dummy' is not really used inside of 's2', but you can just
add some line like this
call dummy()
which does not make the false warning go away either.
[Of course, diagnosing that 's3' is never actually called in the original test
case is not quite trivial in general, and it is not what this PR is aiming
for.]