[kaffe] CVS kaffe (dalibor): Fixed compiler warning on sparc-solaris
Kaffe CVS
cvs-commits at kaffe.org
Wed Jan 7 11:04:02 PST 2004
PatchSet 4288
Date: 2004/01/07 19:00:59
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Fixed compiler warning on sparc-solaris
2004-01-07 Dalibor Topic <robilad at kaffe.org>
* include/jni.h
(JNINativeInterface): Changed GetPrimitiveArrayCritical
protoype to match spec.
* kaffe/kaffevm/jni.c
(Kaffe_ReleasePrimitiveArrayCritical): Changed prototype
to match spec.
Reported by: Riccardo Mottola <zuse at libero.it>
Members:
ChangeLog:1.1875->1.1876
include/jni.h:1.25->1.26
kaffe/kaffevm/jni.c:1.98->1.99
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1875 kaffe/ChangeLog:1.1876
--- kaffe/ChangeLog:1.1875 Wed Jan 7 17:17:00 2004
+++ kaffe/ChangeLog Wed Jan 7 19:00:59 2004
@@ -1,5 +1,17 @@
2004-01-07 Dalibor Topic <robilad at kaffe.org>
+ * include/jni.h
+ (JNINativeInterface): Changed GetPrimitiveArrayCritical
+ protoype to match spec.
+
+ * kaffe/kaffevm/jni.c
+ (Kaffe_ReleasePrimitiveArrayCritical): Changed prototype
+ to match spec.
+
+ Reported by: Riccardo Mottola <zuse at libero.it>
+
+2004-01-07 Dalibor Topic <robilad at kaffe.org>
+
* kaffe/kaffevm/intrp/machine.c
(runVirtualMachine): Removed unused variable lcc.
Fixes a compiler warning on sparc-solaris.
Index: kaffe/include/jni.h
diff -u kaffe/include/jni.h:1.25 kaffe/include/jni.h:1.26
--- kaffe/include/jni.h:1.25 Fri Jan 2 22:36:21 2004
+++ kaffe/include/jni.h Wed Jan 7 19:01:00 2004
@@ -294,7 +294,7 @@
void* reserved12; /* GetStringRegion */
void* reserved13; /* GetStringUTFRegion */
- void* (*GetPrimitiveArrayCritical) (JNIEnv*, jarray, jboolean);
+ void* (*GetPrimitiveArrayCritical) (JNIEnv*, jarray, jboolean*);
void (*ReleasePrimitiveArrayCritical) (JNIEnv*, jarray, void*, jint);
void* reserved16; /* GetStringCritical */
void* reserved17; /* ReleaseStringCritical */
Index: kaffe/kaffe/kaffevm/jni.c
diff -u kaffe/kaffe/kaffevm/jni.c:1.98 kaffe/kaffe/kaffevm/jni.c:1.99
--- kaffe/kaffe/kaffevm/jni.c:1.98 Fri Jan 2 22:36:22 2004
+++ kaffe/kaffe/kaffevm/jni.c Wed Jan 7 19:01:01 2004
@@ -3165,7 +3165,7 @@
}
static void
-Kaffe_ReleasePrimitiveArrayCritical(JNIEnv* env, jbyteArray arr, jbyte* elems, jint mode)
+Kaffe_ReleasePrimitiveArrayCritical(JNIEnv* env, jbyteArray arr, void* elems, jint mode)
{
Kaffe_ReleaseByteArrayElements(env, (jbyteArray)arr, (jbyte*)elems, mode);
}
More information about the kaffe
mailing list