[kaffe] CVS kaffe (robilad): small warning fix in boehm-gc

Kaffe CVS cvs-commits at kaffe.org
Sun Nov 19 08:49:39 PST 2006


PatchSet 7446 
Date: 2006/11/19 16:48:20
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
small warning fix in boehm-gc

2006-11-19  Dalibor Topic  <robilad at kaffe.org>

* kaffe/kaffevm/boehm-gc/gc-kaffe.c: Changed type
of GC_kaffe_freelist to void ** to fix compiler warning.
(GC_kaffe_malloc) Changed types of op and opp to void* and
void ** to fix compiler warnings.
(GC_kaffe_init) Removed no longer necessary cast.

Members: 
	ChangeLog:1.4946->1.4947 
	kaffe/kaffevm/boehm-gc/gc-kaffe.c:1.2->1.3 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4946 kaffe/ChangeLog:1.4947
--- kaffe/ChangeLog:1.4946	Sun Nov 19 15:36:16 2006
+++ kaffe/ChangeLog	Sun Nov 19 16:48:20 2006
@@ -1,5 +1,13 @@
 2006-11-19  Dalibor Topic  <robilad at kaffe.org>
 
+	* kaffe/kaffevm/boehm-gc/gc-kaffe.c: Changed type
+	of GC_kaffe_freelist to void ** to fix compiler warning.
+	(GC_kaffe_malloc) Changed types of op and opp to void* and
+	void ** to fix compiler warnings. 
+	(GC_kaffe_init) Removed no longer necessary cast.
+
+2006-11-19  Dalibor Topic  <robilad at kaffe.org>
+
 	Fix for #76.
 
 	* configure.ac: Check if lib(un)gif header is installed,
Index: kaffe/kaffe/kaffevm/boehm-gc/gc-kaffe.c
diff -u kaffe/kaffe/kaffevm/boehm-gc/gc-kaffe.c:1.2 kaffe/kaffe/kaffevm/boehm-gc/gc-kaffe.c:1.3
--- kaffe/kaffe/kaffevm/boehm-gc/gc-kaffe.c:1.2	Tue Aug 24 17:59:42 2004
+++ kaffe/kaffe/kaffevm/boehm-gc/gc-kaffe.c	Sun Nov 19 16:48:21 2006
@@ -26,7 +26,7 @@
 
 static int GC_kaffe_proc;
 static int GC_kaffe_kind;
-static ptr_t * GC_kaffe_freelist;
+static void ** GC_kaffe_freelist;
 
 extern ptr_t GC_clear_stack();
 
@@ -55,8 +55,8 @@
 /* Allocate an object, clear it */
 void * GC_kaffe_malloc(size_t lb)
 {
-register ptr_t op;
-register ptr_t * opp;
+register void * op;
+register void ** opp;
 register word lw;
 DCL_LOCK_STATE;
 
@@ -99,7 +99,7 @@
 
 void GC_kaffe_init(GC_mark_proc proc)
 {
-  GC_kaffe_freelist = (ptr_t *)GC_new_free_list();
+  GC_kaffe_freelist = GC_new_free_list();
   GC_kaffe_proc = GC_new_proc(proc);
   GC_kaffe_kind = GC_new_kind(GC_kaffe_freelist,
 			      GC_MAKE_PROC(GC_kaffe_proc, 0),




More information about the kaffe mailing list