[kaffe] CVS kaffe (dalibor): Fixed compiler warnings on m68k-linux
Kaffe CVS
cvs-commits at kaffe.org
Fri Mar 12 02:58:02 PST 2004
PatchSet 4510
Date: 2004/03/12 10:38:42
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Fixed compiler warnings on m68k-linux
2004-03-12 Riccardo Mottola <zuse at libero.it>
* config/m68k/jit-m68k.def:
(debug) Don't use %l since CODEPC is not a long in jit.
* libraries/clib/native/ByteToCharIconv.c,
libraries/clib/native/CharToByteIconv.c:
Removed const from icv_in declaration to fix compiler
warning on m68k-linux.
Members:
ChangeLog:1.2089->1.2090
config/m68k/jit-m68k.def:1.5->1.6
libraries/clib/native/ByteToCharIconv.c:1.7->1.8
libraries/clib/native/CharToByteIconv.c:1.5->1.6
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2089 kaffe/ChangeLog:1.2090
--- kaffe/ChangeLog:1.2089 Thu Mar 11 16:22:50 2004
+++ kaffe/ChangeLog Fri Mar 12 10:38:42 2004
@@ -1,3 +1,13 @@
+2004-03-12 Riccardo Mottola <zuse at libero.it>
+
+ * config/m68k/jit-m68k.def:
+ (debug) Don't use %l since CODEPC is not a long in jit.
+
+ * libraries/clib/native/ByteToCharIconv.c,
+ libraries/clib/native/CharToByteIconv.c:
+ Removed const from icv_in declaration to fix compiler
+ warning on m68k-linux.
+
2004-03-11 Dalibor Topic <robilad at kaffe.org>
* config/arm/common.h
Index: kaffe/config/m68k/jit-m68k.def
diff -u kaffe/config/m68k/jit-m68k.def:1.5 kaffe/config/m68k/jit-m68k.def:1.6
--- kaffe/config/m68k/jit-m68k.def:1.5 Tue Mar 11 08:00:16 2003
+++ kaffe/config/m68k/jit-m68k.def Fri Mar 12 10:38:44 2004
@@ -63,7 +63,7 @@
#ifdef KAFFE_VMDEBUG
int jit_debug = 0;
-#define debug(x) (jit_debug ? printf("%lx:\t", CODEPC), printf x : 0)
+#define debug(x) (jit_debug ? printf("%dx:\t", CODEPC), printf x : 0)
#else
#define debug(x) ((void)0)
#endif
Index: kaffe/libraries/clib/native/ByteToCharIconv.c
diff -u kaffe/libraries/clib/native/ByteToCharIconv.c:1.7 kaffe/libraries/clib/native/ByteToCharIconv.c:1.8
--- kaffe/libraries/clib/native/ByteToCharIconv.c:1.7 Fri Dec 19 18:51:06 2003
+++ kaffe/libraries/clib/native/ByteToCharIconv.c Fri Mar 12 10:38:44 2004
@@ -75,7 +75,7 @@
#if defined(HAVE_ICONV)
jboolean isCopy;
jbyte *jb = (*env)->GetByteArrayElements(env, fromBytes, &isCopy);
- const char *icv_in = (char*) (jb + fromPos);
+ char *icv_in = (char*) (jb + fromPos);
size_t icv_inlen = fromLen;
jchar *jc = (*env)->GetCharArrayElements(env, toChars, &isCopy);
char *icv_out = (char *) (jc + toPos);
Index: kaffe/libraries/clib/native/CharToByteIconv.c
diff -u kaffe/libraries/clib/native/CharToByteIconv.c:1.5 kaffe/libraries/clib/native/CharToByteIconv.c:1.6
--- kaffe/libraries/clib/native/CharToByteIconv.c:1.5 Fri Dec 19 18:51:06 2003
+++ kaffe/libraries/clib/native/CharToByteIconv.c Fri Mar 12 10:38:44 2004
@@ -73,7 +73,7 @@
#if defined(HAVE_ICONV)
jboolean isCopy;
jchar *jc = (*env)->GetCharArrayElements(env, fromChars, &isCopy);
- const char *icv_in = (char*) (jc + fromPos);
+ char *icv_in = (char*) (jc + fromPos);
size_t icv_inlen = fromLen * 2;
jbyte *jb = (*env)->GetByteArrayElements(env, toBytes, &isCopy);
char *icv_out = (char *) (jb + toPos);
More information about the kaffe
mailing list