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

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Oct 20 18:45:00 GMT 2012


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)



More information about the Gcc-bugs mailing list