Casey Marshall wrote:
> OK. Hibbego.
> 
> I'm checking in my patch that I've been writing about recently.
> 

There was a warning about an unused parameter in jcl.c. It didn't get
mentioned on Darwin, but does on Linux. The attached fixes it.

2006-09-17  Casey Marshall  <[EMAIL PROTECTED]>

        * native/jni/classpath/jcl.c (JNI_OnLoad): mark `reserved' as
        unused.

Committed.
Index: native/jni/classpath/jcl.c
===================================================================
RCS file: /cvsroot/classpath/classpath/native/jni/classpath/jcl.c,v
retrieving revision 1.24
diff -u -r1.24 jcl.c
--- native/jni/classpath/jcl.c  17 Sep 2006 07:31:43 -0000      1.24
+++ native/jni/classpath/jcl.c  17 Sep 2006 19:09:22 -0000
@@ -51,15 +51,15 @@
 /*
  * Cached Pointer class info.
  */
-static jclass rawDataClass;
-static jfieldID rawData_fid;
-static jmethodID rawData_mid;
+static jclass rawDataClass = NULL;
+static jfieldID rawData_fid = NULL;
+static jmethodID rawData_mid = NULL;
 
 /*
  * JNI OnLoad constructor.
  */
 jint
-JNI_OnLoad (JavaVM *vm, void *reserved)
+JNI_OnLoad (JavaVM *vm, void *reserved __attribute__((unused)))
 {
   JNIEnv *env;
   void *envp;

Reply via email to