This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH, libjava: silence unsued parameter warning


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;



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]