This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH, libjava: silence unsued parameter warning
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: java <java at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 30 Nov 2009 14:44:10 +1100
- Subject: 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;