PatchSet 7558 Date: 2007/09/22 20:13:00 Author: robilad Branch: HEAD Tag: (none) Log: 2007-09-22 Dalibor Topic <[EMAIL PROTECTED]>
* kaffe/kaffevm/exception.c (discardErrorInfo): Introduced local variable to fix compiler warning on x86_64-linux. Members: ChangeLog:1.5056->1.5057 kaffe/kaffevm/exception.c:1.108->1.109 Index: kaffe/ChangeLog diff -u kaffe/ChangeLog:1.5056 kaffe/ChangeLog:1.5057 --- kaffe/ChangeLog:1.5056 Sat Sep 22 20:01:49 2007 +++ kaffe/ChangeLog Sat Sep 22 20:13:00 2007 @@ -1,5 +1,10 @@ 2007-09-22 Dalibor Topic <[EMAIL PROTECTED]> + * kaffe/kaffevm/exception.c (discardErrorInfo): + Introduced local variable to fix compiler warning on x86_64-linux. + +2007-09-22 Dalibor Topic <[EMAIL PROTECTED]> + * kaffe/kaffevm/jni/jni-string.c (KaffeJNI_ReleaseStringUTFChars): Introduced local variable to fix compiler warning on x86_64-linux. Index: kaffe/kaffe/kaffevm/exception.c diff -u kaffe/kaffe/kaffevm/exception.c:1.108 kaffe/kaffe/kaffevm/exception.c:1.109 --- kaffe/kaffe/kaffevm/exception.c:1.108 Fri Jul 14 21:25:02 2006 +++ kaffe/kaffe/kaffevm/exception.c Sat Sep 22 20:13:01 2007 @@ -281,16 +281,19 @@ /* XXX */ } -/* - * discard the errorinfo, freeing a message if necessary +/** + * Discard the errorinfo, freeing a message if necessary + * + * @param einfo error info */ void discardErrorInfo(errorInfo *einfo) { - if (einfo->type & KERR_FREE_MESSAGE) { - KFREE((void *)einfo->mess); - einfo->type &= ~KERR_FREE_MESSAGE; - } + if (einfo->type & KERR_FREE_MESSAGE) { + void * message = (void *) einfo->mess; + KFREE(message); + einfo->type &= ~KERR_FREE_MESSAGE; + } } /* _______________________________________________ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe