[kaffe] CVS kaffe (robilad): Fixed compiler warnings

Kaffe CVS cvs-commits at kaffe.org
Fri Sep 9 08:20:23 PDT 2005


PatchSet 6886 
Date: 2005/09/09 15:15:22
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Fixed compiler warnings

2005-09-09  Dalibor Topic  <robilad at kaffe.org>

        * kaffe/jvmpi/jvmpi_kaffe.c (jvmpiFillMethodLoad):
        Make lpc unsigned to fix compiler warnings.
        (jvmpiGetCallTrace) Made lpc2 unsigned to fix compiler
        warnings.

        * libraries/clib/native/Object.c (java_lang_VMObject_wait):
        Added missing casts to upcast thread to object pointers.

Members: 
	ChangeLog:1.4407->1.4408 
	kaffe/jvmpi/jvmpi_kaffe.c:1.16->1.17 
	libraries/clib/native/Object.c:1.17->1.18 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4407 kaffe/ChangeLog:1.4408
--- kaffe/ChangeLog:1.4407	Fri Sep  9 14:41:42 2005
+++ kaffe/ChangeLog	Fri Sep  9 15:15:22 2005
@@ -1,5 +1,15 @@
 2005-09-09  Dalibor Topic  <robilad at kaffe.org>
 
+	* kaffe/jvmpi/jvmpi_kaffe.c (jvmpiFillMethodLoad):
+	Make lpc unsigned to fix compiler warnings.
+	(jvmpiGetCallTrace) Made lpc2 unsigned to fix compiler 
+	warnings.
+
+	* libraries/clib/native/Object.c (java_lang_VMObject_wait):
+	Added missing casts to upcast thread to object pointers.
+
+2005-09-09  Dalibor Topic  <robilad at kaffe.org>
+
 	* kaffe/kaffevm/classMethod.h (Hjava_lang_Class):
 	Made total_interface_len unsigned to fix compiler warning.
 
Index: kaffe/kaffe/jvmpi/jvmpi_kaffe.c
diff -u kaffe/kaffe/jvmpi/jvmpi_kaffe.c:1.16 kaffe/kaffe/jvmpi/jvmpi_kaffe.c:1.17
--- kaffe/kaffe/jvmpi/jvmpi_kaffe.c:1.16	Fri Aug 19 20:57:19 2005
+++ kaffe/kaffe/jvmpi/jvmpi_kaffe.c	Fri Sep  9 15:15:27 2005
@@ -261,7 +261,7 @@
   if( xmeth->lines )
     {
       JVMPI_Lineno *jvmpi_lineno = NULL;
-      int lpc;
+      unsigned int lpc;
       
       jvmpi_lineno = alloca(sizeof(JVMPI_Lineno) *
 			    xmeth->lines->length);
@@ -426,7 +426,7 @@
 			if( meth->lines != NULL )
 			{
 				uintp linepc = 0;
-				int lpc2;
+				unsigned int lpc2;
 				
 				for( lpc2 = 0;
 				     lpc2 < meth->lines->length;
Index: kaffe/libraries/clib/native/Object.c
diff -u kaffe/libraries/clib/native/Object.c:1.17 kaffe/libraries/clib/native/Object.c:1.18
--- kaffe/libraries/clib/native/Object.c:1.17	Thu Jul 21 13:03:28 2005
+++ kaffe/libraries/clib/native/Object.c	Fri Sep  9 15:15:28 2005
@@ -112,7 +112,7 @@
       JVMPI_Event ev;
       
       ev.event_type = JVMPI_EVENT_MONITOR_WAIT;
-      if( o == getCurrentThread()->vmThread )
+      if( o == (struct Hjava_lang_Object*) getCurrentThread()->vmThread )
 	{
 	  ev.u.monitor_wait.object = NULL;
 	}
@@ -131,7 +131,7 @@
       JVMPI_Event ev;
       
       ev.event_type = JVMPI_EVENT_MONITOR_WAITED;
-      if( o == getCurrentThread()->vmThread )
+      if( o == (struct Hjava_lang_Object*) getCurrentThread()->vmThread )
 	{
 	  ev.u.monitor_wait.object = NULL;
 	}




More information about the kaffe mailing list