[kaffe] CVS kaffe (robilad): Small warning fix for jvmpi

Kaffe CVS cvs-commits at kaffe.org
Mon Aug 8 11:58:26 PDT 2005


PatchSet 6793 
Date: 2005/08/08 18:53:57
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Small warning fix for jvmpi

2005-08-08  Dalibor Topic  <robilad at kaffe.org>

        * kaffe/kaffevm/jni/jni-base.c (JNI_CreateJavaVM):
        Moved errbuf into JVMPI section to fix compiler warning.

Members: 
	ChangeLog:1.4318->1.4319 
	kaffe/kaffevm/jni/jni-base.c:1.22->1.23 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4318 kaffe/ChangeLog:1.4319
--- kaffe/ChangeLog:1.4318	Mon Aug  8 15:39:12 2005
+++ kaffe/ChangeLog	Mon Aug  8 18:53:57 2005
@@ -1,5 +1,10 @@
 2005-08-08  Dalibor Topic  <robilad at kaffe.org>
 
+	* kaffe/kaffevm/jni/jni-base.c (JNI_CreateJavaVM):
+	Moved errbuf into JVMPI section to fix compiler warning.
+
+2005-08-08  Dalibor Topic  <robilad at kaffe.org>
+
 	Fixed make distcheck.
 
 	* include/Makefile.am: Added kaffe/trampoline.h.
Index: kaffe/kaffe/kaffevm/jni/jni-base.c
diff -u kaffe/kaffe/kaffevm/jni/jni-base.c:1.22 kaffe/kaffe/kaffevm/jni/jni-base.c:1.23
--- kaffe/kaffe/kaffevm/jni/jni-base.c:1.22	Tue Jul 19 19:26:16 2005
+++ kaffe/kaffe/kaffevm/jni/jni-base.c	Mon Aug  8 18:54:00 2005
@@ -273,7 +273,6 @@
   JavaVMInitArgs *vm_args = (JavaVMInitArgs *)args;
   JNIEnv **env = (JNIEnv **)penv;
   jnirefs *reftable;
-  char errbuf[256];
 
   switch (vm_args->version)
     {
@@ -315,6 +314,7 @@
 #if defined(ENABLE_JVMPI)
   if (Kaffe_JavaVMArgs.profilerLibname != NULL)
     {
+      char errbuf[256];
       jint (*onloadProfiler)(JavaVM *jvm, const char *options, void *reserved);
 
       if (loadNativeLibrary(Kaffe_JavaVMArgs.profilerLibname, NULL, errbuf, sizeof(errbuf)) < 0)



More information about the kaffe mailing list