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 2015-11-02 10:47:04 -08:00 committed by facebook-github-bot-4
parent 99158f0d5a
commit 63015b911c
1 changed files with 1 additions and 1 deletions

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);