[kaffe] CVS kaffe (dalibor): Fixed gcc warning
Kaffe CVS
cvs-commits at kaffe.org
Sun Feb 8 09:20:03 PST 2004
PatchSet 4403
Date: 2004/02/08 17:11:36
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Fixed gcc warning
2004-02-08 Dalibor Topic <robilad at kaffe.org>
* kaffe/kaffevm/verify.c
(printConstantPool, printInstruction, printBlock):
Fixed gcc compiler warning about unused functions when
compiled without debugging enabled.
Members:
ChangeLog:1.1987->1.1988
kaffe/kaffevm/verify.c:1.29->1.30
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1987 kaffe/ChangeLog:1.1988
--- kaffe/ChangeLog:1.1987 Sun Feb 8 16:29:14 2004
+++ kaffe/ChangeLog Sun Feb 8 17:11:36 2004
@@ -1,5 +1,12 @@
2004-02-08 Dalibor Topic <robilad at kaffe.org>
+ * kaffe/kaffevm/verify.c
+ (printConstantPool, printInstruction, printBlock):
+ Fixed gcc compiler warning about unused functions when
+ compiled without debugging enabled.
+
+2004-02-08 Dalibor Topic <robilad at kaffe.org>
+
* kaffe/kaffevm/stringParsing.c
(skipChars, skipSpace): Changed parameter types to unsigned char
to fix compiler warning on sparc-solaris2 due to chars being passed
Index: kaffe/kaffe/kaffevm/verify.c
diff -u kaffe/kaffe/kaffevm/verify.c:1.29 kaffe/kaffe/kaffevm/verify.c:1.30
--- kaffe/kaffe/kaffevm/verify.c:1.29 Mon Nov 3 05:29:31 2003
+++ kaffe/kaffe/kaffevm/verify.c Sun Feb 8 17:11:38 2004
@@ -212,7 +212,7 @@
/*
* For debugging purposes. Prints out the value of the specified constant pool entry.
*/
-#ifdef KAFFE_VMDEBUG
+#if !(defined(NDEBUG) || !defined(KAFFE_VMDEBUG))
const char* indent = " ";
const char* indent2 = " ";
@@ -302,7 +302,7 @@
DBG(VERIFY2, dprintf("\n"); );
}
}
-#endif
+#endif /* !(defined(NDEBUG) || !defined(KAFFE_VMDEBUG)) */
/*
@@ -4921,7 +4921,7 @@
/* for debugging */
-#ifdef KAFFE_VMDEBUG
+#if !(defined(NDEBUG) || !defined(KAFFE_VMDEBUG))
/*
* printInstruction()
@@ -5337,4 +5337,4 @@
}
-#endif /* ifdef KAFFE_VMDEBUG */
+#endif /* !(defined(NDEBUG) || !defined(KAFFE_VMDEBUG)) */
More information about the kaffe
mailing list