[kaffe] CVS kaffe (dalibor): Fixed two compiler warnings

Kaffe CVS cvs-commits at kaffe.org
Thu Aug 26 09:42:51 PDT 2004


PatchSet 5110 
Date: 2004/08/26 16:38:47
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Fixed two compiler warnings

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

        * kaffe/kaffevm/jit3/constpool.c (printConstant):
        Only define if debugging is enabled. For real, this time.

        * kaffe/kaffevm/jit3/machine.c (translate):
        Only declare i if debugging is enabled.

Members: 
	ChangeLog:1.2666->1.2667 
	kaffe/kaffevm/jit3/constpool.c:1.11->1.12 
	kaffe/kaffevm/jit3/machine.c:1.56->1.57 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2666 kaffe/ChangeLog:1.2667
--- kaffe/ChangeLog:1.2666	Thu Aug 26 14:41:40 2004
+++ kaffe/ChangeLog	Thu Aug 26 16:38:47 2004
@@ -1,6 +1,14 @@
 2004-08-26  Dalibor Topic  <robilad at kaffe.org>
 
 	* kaffe/kaffevm/jit3/constpool.c (printConstant): 
+	Only define if debugging is enabled. For real, this time.
+
+	* kaffe/kaffevm/jit3/machine.c (translate): 
+	Only declare i if debugging is enabled.
+	
+2004-08-26  Dalibor Topic  <robilad at kaffe.org>
+
+	* kaffe/kaffevm/jit3/constpool.c (printConstant): 
 	Only define if debugging is enabled.
 
 2004-08-26  Guilhem Lavaux <guilhem at kaffe.org>
Index: kaffe/kaffe/kaffevm/jit3/constpool.c
diff -u kaffe/kaffe/kaffevm/jit3/constpool.c:1.11 kaffe/kaffe/kaffevm/jit3/constpool.c:1.12
--- kaffe/kaffe/kaffevm/jit3/constpool.c:1.11	Thu Aug 26 14:41:43 2004
+++ kaffe/kaffe/kaffevm/jit3/constpool.c	Thu Aug 26 16:38:50 2004
@@ -122,7 +122,7 @@
 	"label",
 };
 
-#if defined(NDEBUG) || !defined(KAFFE_VMDEBUG)
+#if defined(KAFFE_VMDEBUG)
 static void
 printConstant(FILE *file, constpool *cp)
 {
@@ -156,7 +156,7 @@
 		break;
 	}
 }
-#endif /* defined(NDEBUG) || !defined(KAFFE_VMDEBUG) */
+#endif /* defined(KAFFE_VMDEBUG) */
 
 void
 establishConstants(void *at)
Index: kaffe/kaffe/kaffevm/jit3/machine.c
diff -u kaffe/kaffe/kaffevm/jit3/machine.c:1.56 kaffe/kaffe/kaffevm/jit3/machine.c:1.57
--- kaffe/kaffe/kaffevm/jit3/machine.c:1.56	Thu Aug 19 19:29:05 2004
+++ kaffe/kaffe/kaffevm/jit3/machine.c	Thu Aug 26 16:38:50 2004
@@ -153,7 +153,9 @@
 jboolean
 translate(Method* xmeth, errorInfo* einfo)
 {
+#if defined(KAFFE_VMDEBUG)
 	int i;
+#endif /* defined(KAFFE_VMDEBUG) */
 
 	jint low;
 	jint high;



More information about the kaffe mailing list