missing return statements in jni.c
Archie Cobbs
archie at whistle.com
Mon Aug 17 13:04:21 PDT 1998
This fixes some missing return statements in "jni.c".
Question: why isn't kaffe compiled with "-Wall" (at least
when gcc is the compiler)? There are lots of useful warnings issued,
and they would have caught this bug earlier.
-Archie
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
Index: jni.c
===================================================================
RCS file: /cvs/mod/net/kaffe/kaffe/kaffevm/jni.c,v
retrieving revision 1.1.1.2.2.3
retrieving revision 1.1.1.2.2.4
diff -c -u -r1.1.1.2.2.3 -r1.1.1.2.2.4
--- jni.c 1998/08/12 16:32:59 1.1.1.2.2.3
+++ jni.c 1998/08/17 20:01:38 1.1.1.2.2.4
@@ -265,6 +265,7 @@
unhand(getCurrentThread())->exceptObj = obj;
END_EXCEPTION_HANDLING();
+ return (0);
}
jint
@@ -279,6 +280,7 @@
unhand(getCurrentThread())->exceptObj = (struct Hkaffe_util_Ptr*)eobj;
END_EXCEPTION_HANDLING();
+ return (0);
}
jobject
@@ -3408,6 +3410,7 @@
Kaffe_DetachCurrentThread(JavaVM* vm)
{
stopThread((*Kaffe_ThreadInterface.currentJava)(), 0);
+ return (0);
}
static
More information about the kaffe
mailing list