[kaffe] CVS kaffe (robilad): Small warning fix
Kaffe CVS
cvs-commits at kaffe.org
Mon Dec 19 18:51:11 PST 2005
PatchSet 7021
Date: 2005/12/20 02:43:30
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Small warning fix
2005-12-20 Dalibor Topic <robilad at kaffe.org>
* kaffe/kaffevm/jni/jni-helpers.c
(KaffeJNI_GetDirectBufferAddress) Copy buffer internally to fix
'clobbered' warning.
Members:
ChangeLog:1.4541->1.4542
kaffe/kaffevm/jni/jni-helpers.c:1.11->1.12
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4541 kaffe/ChangeLog:1.4542
--- kaffe/ChangeLog:1.4541 Tue Dec 20 02:02:53 2005
+++ kaffe/ChangeLog Tue Dec 20 02:43:30 2005
@@ -1,5 +1,11 @@
2005-12-20 Dalibor Topic <robilad at kaffe.org>
+ * kaffe/kaffevm/jni/jni-helpers.c
+ (KaffeJNI_GetDirectBufferAddress) Copy buffer internally to fix
+ 'clobbered' warning.
+
+2005-12-20 Dalibor Topic <robilad at kaffe.org>
+
* kaffe/kaffevm/systems/unix-pthreads/syscalls.c
(jthreadedRecvfrom): Initialize r.
Index: kaffe/kaffe/kaffevm/jni/jni-helpers.c
diff -u kaffe/kaffe/kaffevm/jni/jni-helpers.c:1.11 kaffe/kaffe/kaffevm/jni/jni-helpers.c:1.12
--- kaffe/kaffe/kaffevm/jni/jni-helpers.c:1.11 Fri Dec 16 20:35:47 2005
+++ kaffe/kaffe/kaffevm/jni/jni-helpers.c Tue Dec 20 02:43:31 2005
@@ -53,13 +53,14 @@
void *KaffeJNI_GetDirectBufferAddress(JNIEnv *env UNUSED, jobject buffer)
{
+ jobject buffer_obj = buffer;
jobject address_obj;
void *address;
Hjava_lang_Object *buffer_local;
BEGIN_EXCEPTION_HANDLING(NULL);
- buffer_local = (Hjava_lang_Object *)unveil(buffer);
+ buffer_local = (Hjava_lang_Object *)unveil(buffer_obj);
if (!instanceof(javaNioBufferClass, OBJECT_CLASS(buffer_local)))
{
More information about the kaffe
mailing list