[kaffe] CVS kaffe (doogie): Few more gcc warning fixes.

Kaffe CVS cvs-commits at kaffe.org
Sun Dec 19 14:07:57 PST 2004


PatchSet 5665 
Date: 2004/12/19 22:03:39
Author: doogie
Branch: HEAD
Tag: (none) 
Log:
Few more gcc warning fixes.

Members: 
	ChangeLog:1.3210->1.3211 
	kaffe/kaffevm/kaffe-gc/gc-incremental.c:1.14->1.15 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3210 kaffe/ChangeLog:1.3211
--- kaffe/ChangeLog:1.3210	Sun Dec 19 06:41:22 2004
+++ kaffe/ChangeLog	Sun Dec 19 22:03:39 2004
@@ -1,5 +1,10 @@
 2004-12-19  Adam Heath  <doogie at brainfood.com>
 
+	* kaffe/kaffevm/kaffe-gc/gc-incremental.c:
+	  Few more gcc warning fixes.
+
+2004-12-19  Adam Heath  <doogie at brainfood.com>
+
 	* kaffe/kaffevm/gc.h, kaffe/kaffevm/kaffe-gc/gc-incremental.h,
 	  kaffe/kaffevm/kaffe-gc/gc-mem.c, kaffe/kaffevm/kaffe-gc/gc-refs.c:
 	  Gcc warning fixes.
Index: kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c
diff -u kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c:1.14 kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c:1.15
--- kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c:1.14	Sun Dec 19 06:25:09 2004
+++ kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c	Sun Dec 19 22:03:38 2004
@@ -275,6 +275,8 @@
 			    if (c)
 				    c->live_count++;
 		    }
+	    default: {
+	    }
 	    }});
 	    
 
@@ -637,7 +639,7 @@
 			gcStats.totalobj,
 			gcStats.totalobj-gcStats.freedobj,
 			(1.0 - ((gcStats.totalmem-gcStats.freedmem)/
-				(double)gc_get_heap_total())) * 100.0,
+				gc_get_heap_total())) * 100.0,
 			gcStats.allocmem/1024,
 			gcStats.allocobj,
 			gcStats.markedmem/1024, 
@@ -1061,7 +1063,7 @@
 				/* Grow the heap */
 				DBG (GCSYSALLOC, dprintf ("growing heap by %u bytes of type %s (%2.1f%% free)\n", 
 							  (unsigned int)size, gcFunctions[fidx].description,
-							  (1.0 - (gcStats.totalmem / (double)gc_get_heap_total())) * 100.0); );
+							  (1.0 - (gcStats.totalmem / gc_get_heap_total())) * 100.0); );
 				
 				gc_heap_grow(size);
 				break;
@@ -1480,7 +1482,7 @@
  * Initialise the Garbage Collection system.
  */
 Collector* 
-createGC()
+createGC(void)
 {
 	URESETLIST(gclists[nofin_white]);
 	URESETLIST(gclists[fin_white]);




More information about the kaffe mailing list