Remove clang compiler warnings for Android: -Wno-unused-parameter
Summary: att Reviewed By: gkmhub Differential Revision: D8972835 fbshipit-source-id: c8b893eefec6ccb5d8506c959bcf5c3f43701e81
This commit is contained in:
committed by
Facebook Github Bot
parent
ffe53d1345
commit
6939292209
@@ -49,6 +49,7 @@ struct ArgsArraySetter<idx, Arg, Args...> {
|
|||||||
template <int idx>
|
template <int idx>
|
||||||
struct ArgsArraySetter<idx> {
|
struct ArgsArraySetter<idx> {
|
||||||
static void set(alias_ref<JArrayClass<jobject>::javaobject> array) {
|
static void set(alias_ref<JArrayClass<jobject>::javaobject> array) {
|
||||||
|
(void)array;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -123,6 +123,7 @@ inline NativeMethodWrapper* exceptionWrapJNIMethod(R (*)(alias_ref<C>, Args... a
|
|||||||
|
|
||||||
template<typename M, M method, typename C, typename R, typename... Args>
|
template<typename M, M method, typename C, typename R, typename... Args>
|
||||||
inline NativeMethodWrapper* exceptionWrapJNIMethod(R (C::*method0)(Args... args)) {
|
inline NativeMethodWrapper* exceptionWrapJNIMethod(R (C::*method0)(Args... args)) {
|
||||||
|
(void)method0;
|
||||||
// This intentionally erases the real type; JNI will do it anyway
|
// This intentionally erases the real type; JNI will do it anyway
|
||||||
return reinterpret_cast<NativeMethodWrapper*>(&(MethodWrapper<M, method, C, R, Args...>::call));
|
return reinterpret_cast<NativeMethodWrapper*>(&(MethodWrapper<M, method, C, R, Args...>::call));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user