OSDN Git Service

* ggc-simple.c (ggc_root, ggc_collect): Wrap prototype with PROTO.
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Sep 1999 02:31:20 +0000 (02:31 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Sep 1999 02:31:20 +0000 (02:31 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29118 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ggc-simple.c

index 2eaa68f..a80c0e8 100644 (file)
@@ -1,3 +1,7 @@
+Sat Sep  4 22:28:56 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * ggc-simple.c (ggc_root, ggc_collect): Wrap prototype with PROTO.
+
 Sat Sep  4 18:01:45 1999  Bernd Schmidt <bernds@cygnus.co.uk>
 
        * c-decl.c (struct language_function): Renamed from struct c_function.
index 3ce7bcb..1d0432d 100644 (file)
@@ -37,7 +37,7 @@ struct ggc_root
   void *base;
   int nelt;
   int size;
-  void (*cb)(void *);
+  void (*cb) PROTO ((void *));
 };
 
 static struct ggc_root *roots;
@@ -524,7 +524,7 @@ ggc_collect ()
     {
       char *elt = x->base;
       int s = x->size, n = x->nelt;
-      void (*cb)(void *) = x->cb;
+      void (*cb) PROTO ((void *)) = x->cb;
       int i;
 
       for (i = 0; i < n; ++i, elt += s)