Blob Blame History Raw
From f0e31ded051c21af2763c61a1218a7cc6e6b5ccd Mon Sep 17 00:00:00 2001
From: Juanjo Garcia-Ripoll <jjgarcia@users.sf.net>
Date: Sun, 6 Oct 2013 22:39:11 +0200
Subject: [PATCH 41/92] Fixed declaration of GC_start_call_back

---
 src/c/alloc_2.d | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/c/alloc_2.d b/src/c/alloc_2.d
index 5bc3572..75e7080 100644
--- a/src/c/alloc_2.d
+++ b/src/c/alloc_2.d
@@ -36,9 +36,9 @@ static void (*GC_old_start_callback)(void) = NULL;
 extern void GC_set_start_callback(void *);
 extern void *GC_get_start_callback(void *);
 #else
-extern void *GC_start_call_back(void);
+extern void (*GC_start_call_back)(void);
 #endif
-static void gather_statistics();
+static void gather_statistics(void);
 static void ecl_mark_env(struct cl_env_struct *env);
 
 /* We need these prototypes because private/gc.h is not available
@@ -1101,7 +1101,7 @@ init_alloc(void)
 	GC_set_start_callback(gather_statistics);
 #else
 	GC_old_start_callback = GC_start_call_back;
-	GC_start_call_back = (void (*)())gather_statistics;
+	GC_start_call_back = (void (*)(void))gather_statistics;
 #endif
 	GC_java_finalization = 1;
         GC_oom_fn = out_of_memory;
-- 
1.9.0