Explicitly cast the trampoline prototype to IMP

Summary: public

Add explicitly cast to the trampoline prototype to silence warnings.

Reviewed By: javache

Differential Revision: D2605779

fb-gh-sync-id: e208b69236c1b87bb1374ee493840ea5f47b371c
This commit is contained in:
Tadeu Zagallo authored and facebook-github-bot-4 committed 2015-11-02 10:51:48 -08:00
1 parent 99158f0d5a
commit 63015b911c
1 file changed
+1 -1
+1 -1
View File
@@ -241,7 +241,7 @@ void RCTProfileHookModules(RCTBridge *bridge)
}
const char *types = method_getTypeEncoding(method);
class_addMethod(proxyClass, selector, RCTProfileTrampoline, types);
class_addMethod(proxyClass, selector, (IMP)RCTProfileTrampoline, types);
}
free(methods);