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 18:45:05 +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 #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
===================================================================
--- gcc/fortran/decl.c (revision 192619)
+++ gcc/fortran/decl.c (working copy)
@@ -4941,8 +4941,6 @@ match_procedure_decl (void)
}
- gfc_set_sym_referenced (sym);
-
if (gfc_match_eos () == MATCH_YES)
return MATCH_YES;
if (gfc_match_char (',') != MATCH_YES)