* PATCH, libjava: silence unsued parameter warning
@ 2009-11-30 3:44 Ben Elliston
0 siblings, 0 replies; only message in thread
From: Ben Elliston @ 2009-11-30 3:44 UTC (permalink / raw)
To: java, gcc-patches
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-30 3:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-30 3:44 PATCH, libjava: silence unsued parameter warning Ben Elliston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).