[Bug fortran/54997] -Wunused-function gives false warnings for procedures passed as actual argument

2012-10-21 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54997 --- Comment #5 from janus at gcc dot gnu.org 2012-10-21 13:48:38 UTC --- (In reply to comment #4) The following removes the warning for s3: [...] but it also removes the warning on procedures which are really unused :( This

[Bug fortran/54997] -Wunused-function gives false warnings for procedures passed as actual argument

2012-10-20 Thread janus at gcc dot gnu.org
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

[Bug fortran/54997] -Wunused-function gives false warnings for procedures passed as actual argument

2012-10-20 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54997 --- Comment #2 from janus at gcc dot gnu.org 2012-10-20 09:03:30 UTC --- (In reply to comment #0) subroutine s2(dummy) procedure() :: dummy end subroutine Also an Unused dummy argument warning is missing here ...

[Bug fortran/54997] -Wunused-function gives false warnings for procedures passed as actual argument

2012-10-20 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54997 --- Comment #3 from janus at gcc dot gnu.org 2012-10-20 18:45:05 UTC --- (In reply to comment #2) Also an Unused dummy argument warning is missing here ... This is fixed by the following patch: Index: gcc/fortran/decl.c

[Bug fortran/54997] -Wunused-function gives false warnings for procedures passed as actual argument

2012-10-20 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54997 --- Comment #4 from janus at gcc dot gnu.org 2012-10-20 21:46:12 UTC --- The following removes the warning for s3: Index: gcc/fortran/trans-decl.c === ---