[kaffe] CVS kaffe (robilad): small warning fix

Kaffe CVS cvs-commits at kaffe.org
Wed Mar 8 18:10:29 PST 2006


PatchSet 7147 
Date: 2006/03/09 01:58:05
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
small warning fix

2006-03-09  Dalibor Topic  <robilad at kaffe.org>

* libraries/clib/native/String.c (java_lang_String_intern0):
Added cast to remove constness from interned string and fix
a compiler warning.

Members: 
	ChangeLog:1.4665->1.4666 
	libraries/clib/native/String.c:1.18->1.19 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4665 kaffe/ChangeLog:1.4666
--- kaffe/ChangeLog:1.4665	Wed Mar  8 23:29:51 2006
+++ kaffe/ChangeLog	Thu Mar  9 01:58:05 2006
@@ -1,5 +1,11 @@
 2006-03-09  Dalibor Topic  <robilad at kaffe.org>
 
+	* libraries/clib/native/String.c (java_lang_String_intern0): 
+	Added cast to remove constness from interned string and fix
+	a compiler warning.
+
+2006-03-09  Dalibor Topic  <robilad at kaffe.org>
+
 	* libraries/clib/math/BigInteger.c (Java_java_math_BigInteger_assignLong0): 
 	Use LL instead of L for the masking constants for jlongs.
 
Index: kaffe/libraries/clib/native/String.c
diff -u kaffe/libraries/clib/native/String.c:1.18 kaffe/libraries/clib/native/String.c:1.19
--- kaffe/libraries/clib/native/String.c:1.18	Fri Aug 19 00:38:34 2005
+++ kaffe/libraries/clib/native/String.c	Thu Mar  9 01:58:12 2006
@@ -25,14 +25,14 @@
 Hjava_lang_String*
 java_lang_String_intern0(Hjava_lang_String* str)
 {
-	Hjava_lang_String *ret = stringInternString(str);
+	const Hjava_lang_String *ret = stringInternString(str);
 
 	if (!ret) {
 		errorInfo info;
 		postOutOfMemory(&info);
 		throwError(&info);
 	}
-	return ret;
+	return (Hjava_lang_String*) ret;
 }
 
 




More information about the kaffe mailing list