[kaffe] CVS kaffe (robilad): Fixes for compiler warnings

Kaffe CVS cvs-commits at kaffe.org
Mon Aug 8 16:36:09 PDT 2005


PatchSet 6796 
Date: 2005/08/08 23:30:50
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Fixes for compiler warnings

2005-08-08  Andreas Tobler  <toa at pop.agri.ch>

        * kaffe/kaffe/main.c (setKaffeAWT): Only define if using Kaffe's AWT.

        * kaffe/kaffevm/jit3/icode.c (cvt_double_int): Removed unused variable i.

Members: 
	ChangeLog:1.4321->1.4322 
	kaffe/kaffe/main.c:1.90->1.91 
	kaffe/kaffevm/jit3/icode.c:1.58->1.59 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4321 kaffe/ChangeLog:1.4322
--- kaffe/ChangeLog:1.4321	Mon Aug  8 22:47:49 2005
+++ kaffe/ChangeLog	Mon Aug  8 23:30:50 2005
@@ -1,3 +1,9 @@
+2005-08-08  Andreas Tobler  <toa at pop.agri.ch>
+
+	* kaffe/kaffe/main.c (setKaffeAWT): Only define if using Kaffe's AWT.
+
+	* kaffe/kaffevm/jit3/icode.c (cvt_double_int): Removed unused variable i.
+
 2005-08-08   Wolfgang Baer <WBaer at gmx.de>
 
 	* kaffe/man/kaffe.1.xml,
Index: kaffe/kaffe/kaffe/main.c
diff -u kaffe/kaffe/kaffe/main.c:1.90 kaffe/kaffe/kaffe/main.c:1.91
--- kaffe/kaffe/kaffe/main.c:1.90	Tue Jul 19 16:27:34 2005
+++ kaffe/kaffe/kaffe/main.c	Mon Aug  8 23:30:55 2005
@@ -354,6 +354,9 @@
  * @param propStr AWT backend
  * @return updated user properties
  */
+
+#if defined (KAFFE_X_AWT_INCLUDED) || defined (KAFFE_QT_AWT_INCLUDED)	\
+  || defined (KAFFE_NANOX_AWT_INCLUDED)
 static 
 userProperty*
 setKaffeAWT(const char * propStr)
@@ -403,7 +406,7 @@
 
 	return prop;
 }
-
+#endif
 /*
  * Process program's flags.
  */
Index: kaffe/kaffe/kaffevm/jit3/icode.c
diff -u kaffe/kaffe/kaffevm/jit3/icode.c:1.58 kaffe/kaffe/kaffevm/jit3/icode.c:1.59
--- kaffe/kaffe/kaffevm/jit3/icode.c:1.58	Tue Jul 19 16:27:37 2005
+++ kaffe/kaffe/kaffevm/jit3/icode.c	Mon Aug  8 23:30:55 2005
@@ -4360,8 +4360,7 @@
 #elif defined(HAVE_cvt_double_int_ieee)
 	{
 	  SlotInfo *tmp;
-	  int i;
-	  
+
 	  end_sub_block();
 	  slot_alloc2tmp(tmp);
 




More information about the kaffe mailing list