[kaffe] CVS kaffe (dalibor): Fixed gcc warning
Kaffe CVS
cvs-commits at kaffe.org
Sun Feb 8 07:38:03 PST 2004
PatchSet 4400
Date: 2004/02/08 15:34:53
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
(gcMalloc): Fixed compiler warning about unused variable.
Members:
ChangeLog:1.1984->1.1985
kaffe/kaffevm/mem/gc-incremental.c:1.69->1.70
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1984 kaffe/ChangeLog:1.1985
--- kaffe/ChangeLog:1.1984 Sun Feb 8 15:01:01 2004
+++ kaffe/ChangeLog Sun Feb 8 15:34:53 2004
@@ -1,5 +1,10 @@
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>
+
* kaffe/kaffevm/classMethod.c
(processClass): Fix gcc warning about unused variables.
Index: kaffe/kaffe/kaffevm/mem/gc-incremental.c
diff -u kaffe/kaffe/kaffevm/mem/gc-incremental.c:1.69 kaffe/kaffe/kaffevm/mem/gc-incremental.c:1.70
--- kaffe/kaffe/kaffevm/mem/gc-incremental.c:1.69 Fri Oct 10 20:05:56 2003
+++ kaffe/kaffe/kaffevm/mem/gc-incremental.c Sun Feb 8 15:34:55 2004
@@ -1055,7 +1055,11 @@
* thrown. If we fail to allocate memory for it, all
* is lost.
*/
+
+#if !(defined(NDEBUG) || !defined(KAFFE_VMDEBUG))
static int ranout;
+#endif /* !(defined(NDEBUG) || !defined(KAFFE_VMDEBUG)) */
+
assert (ranout++ == 0 || !!!"Ran out of memory!");
}
/* Guess we've really run out */
More information about the kaffe
mailing list