[kaffe] CVS kaffe (dalibor): Fixed gcc warning

Kaffe CVS cvs-commits at kaffe.org
Sun Feb 8 08:20:03 PST 2004


PatchSet 4401 
Date: 2004/02/08 16:06:23
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Fixed gcc warning

2004-02-08  Dalibor Topic <robilad at kaffe.org>

        * kaffe/kaffevm/mem/gc-incremental.c
        (gcClearCounts, gcDumpCounts): Fixed gcc compiler warning
        about unused functions when user compiled without debugging
        enabled.

Members: 
	ChangeLog:1.1985->1.1986 
	kaffe/kaffevm/mem/gc-incremental.c:1.70->1.71 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1985 kaffe/ChangeLog:1.1986
--- kaffe/ChangeLog:1.1985	Sun Feb  8 15:34:53 2004
+++ kaffe/ChangeLog	Sun Feb  8 16:06:23 2004
@@ -1,6 +1,13 @@
 2004-02-08  Dalibor Topic <robilad at kaffe.org>
 
 	* kaffe/kaffevm/mem/gc-incremental.c
+	(gcClearCounts, gcDumpCounts): Fixed gcc compiler warning
+	about unused functions when user compiled without debugging 
+	enabled.
+
+2004-02-08  Dalibor Topic <robilad at kaffe.org>
+
+	* kaffe/kaffevm/mem/gc-incremental.c
 	(gcMalloc): Fixed compiler warning about unused variable.
 
 2004-02-08  Dalibor Topic <robilad at kaffe.org>
Index: kaffe/kaffe/kaffevm/mem/gc-incremental.c
diff -u kaffe/kaffe/kaffevm/mem/gc-incremental.c:1.70 kaffe/kaffe/kaffevm/mem/gc-incremental.c:1.71
--- kaffe/kaffe/kaffevm/mem/gc-incremental.c:1.70	Sun Feb  8 15:34:55 2004
+++ kaffe/kaffe/kaffevm/mem/gc-incremental.c	Sun Feb  8 16:06:25 2004
@@ -467,7 +467,7 @@
 	}
 }
 
-#ifdef KAFFE_VMDEBUG
+#if !(defined(NDEBUG) || !defined(KAFFE_VMDEBUG))
 static int
 gcClearCounts(Hjava_lang_Class *c, void *_)
 {
@@ -482,7 +482,7 @@
 		dprintf("%7d %s\n", c->live_count,	c->name->data);
 	return 0;
 }
-#endif
+#endif /* !(defined(NDEBUG) || !defined(KAFFE_VMDEBUG)) */
 
 /*
  * The Garbage Collector sits in a loop starting a collection, waiting




More information about the kaffe mailing list