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:
Zhaojun Zhang
2018-07-27 10:51:27 -07:00
committed by Facebook Github Bot
parent ffe53d1345
commit 6939292209
2 changed files with 2 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ struct ArgsArraySetter<idx, Arg, Args...> {
template <int idx>
struct ArgsArraySetter<idx> {
static void set(alias_ref<JArrayClass<jobject>::javaobject> array) {
(void)array;
}
};

View File

@@ -123,6 +123,7 @@ inline NativeMethodWrapper* exceptionWrapJNIMethod(R (*)(alias_ref<C>, Args... a
template<typename M, M method, typename C, typename R, typename... Args>
inline NativeMethodWrapper* exceptionWrapJNIMethod(R (C::*method0)(Args... args)) {
(void)method0;
// This intentionally erases the real type; JNI will do it anyway
return reinterpret_cast<NativeMethodWrapper*>(&(MethodWrapper<M, method, C, R, Args...>::call));
}