PATCH, libjava: silence unsued parameter warning
Ben Elliston <[email protected]>
| Newsgroups | gmane.comp.gcc.java.devel,gmane.comp.gcc.patches |
|---|---|
| Message-ID | <1259552650.22589.2.camel@bapbop> |
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 <[email protected]> * 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;