[kaffe] CVS kaffe (dalibor): Fixed gcc warning
Kaffe CVS
cvs-commits at kaffe.org
Sun Feb 8 09:49:02 PST 2004
PatchSet 4404
Date: 2004/02/08 17:23:23
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Fixed gcc warning
2004-02-08 Dalibor Topic <robilad at kaffe.org>
* kaffe/kaffevm/mem/gc-mem.c
(printslack, gc_heap_check):
Fixed gcc compiler warning about unused functions when
compiled without debugging enabled.
Members:
ChangeLog:1.1988->1.1989
kaffe/kaffevm/mem/gc-mem.c:1.51->1.52
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1988 kaffe/ChangeLog:1.1989
--- kaffe/ChangeLog:1.1988 Sun Feb 8 17:11:36 2004
+++ kaffe/ChangeLog Sun Feb 8 17:23:23 2004
@@ -1,5 +1,12 @@
2004-02-08 Dalibor Topic <robilad at kaffe.org>
+ * kaffe/kaffevm/mem/gc-mem.c
+ (printslack, gc_heap_check):
+ Fixed gcc compiler warning about unused functions when
+ compiled without debugging enabled.
+
+2004-02-08 Dalibor Topic <robilad at kaffe.org>
+
* kaffe/kaffevm/verify.c
(printConstantPool, printInstruction, printBlock):
Fixed gcc compiler warning about unused functions when
Index: kaffe/kaffe/kaffevm/mem/gc-mem.c
diff -u kaffe/kaffe/kaffevm/mem/gc-mem.c:1.51 kaffe/kaffe/kaffevm/mem/gc-mem.c:1.52
--- kaffe/kaffe/kaffevm/mem/gc-mem.c:1.51 Tue Nov 11 14:34:45 2003
+++ kaffe/kaffe/kaffevm/mem/gc-mem.c Sun Feb 8 17:23:25 2004
@@ -111,7 +111,7 @@
extern struct Hjava_lang_Thread* garbageman;
-#ifdef KAFFE_VMDEBUG
+#if !(defined(NDEBUG) || !defined(KAFFE_VMDEBUG))
/* Magic constant used to mark blocks under gc's management */
static const uint32 gc_magic = 0xD0DECADE;
@@ -174,7 +174,7 @@
}
}
-#endif /* KAFFE_VMDEBUG */
+#endif /* !(defined(NDEBUG) || !defined(KAFFE_VMDEBUG)) */
/*
* Initialise allocator.
More information about the kaffe
mailing list