PATCH, libjava: silence unsued parameter warning

Ben Elliston bje@au1.ibm.com
Mon Nov 30 03:44:00 GMT 2009


This patch silences a warning about 'object' being unused in
_Jv_JNI_GetObjectRefType.  Committed as obvious, given that MAYBE_UNUSED
is used elsewhere in the libjava tree.  Tested with a bootstrap and make
check-target-libjava.

Ben

2009-11-30  Ben Elliston  <bje@au.ibm.com>

	* jni.cc (_Jv_JNI_GetObjectRefType): Mark `object' parameter as
	maybe unused.

Index: jni.cc
===================================================================
--- jni.cc	(revision 154747)
+++ jni.cc	(working copy)
@@ -1806,7 +1806,7 @@ _Jv_JNI_GetDirectBufferCapacity (JNIEnv 
 }
 
 static jobjectRefType JNICALL
-_Jv_JNI_GetObjectRefType (JNIEnv *, jobject object)
+_Jv_JNI_GetObjectRefType (JNIEnv *, MAYBE_UNUSED jobject object)
 {
   JvFail("GetObjectRefType not implemented");
   return JNIInvalidRefType;




More information about the Java mailing list