mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-11 22:40:37 +08:00
Mark params __unused or #pragma unused
Summary: Motivation: reduce build noise that might worry new users or hide real problems. This deals with four of the warnings currently in the iOS build. The `__unused` additions are standard and self-explanatory, following the style used elsewhere in RN. I've used `#pragma unused` to deal with parameters named by macros. Tested by building and running the `UIExplorer` example app in XCode 8.2 Closes https://github.com/facebook/react-native/pull/11797 Differential Revision: D4396611 fbshipit-source-id: 728e9ebb94d147f7a2cbc674a25fe67e66e2e8b2
This commit is contained in:
committed by
Facebook Github Bot
parent
fa3c06d637
commit
2d8a287f9c
@@ -20,7 +20,7 @@
|
||||
RCT_EXPORT_MODULE(JSCSamplingProfiler);
|
||||
|
||||
#ifdef RCT_PROFILE
|
||||
RCT_EXPORT_METHOD(operationComplete:(int)token result:(id)profileData error:(id)error)
|
||||
RCT_EXPORT_METHOD(operationComplete:(__unused int)token result:(id)profileData error:(id)error)
|
||||
{
|
||||
if (error) {
|
||||
RCTLogError(@"JSC Sampling profiler ended with error: %@", error);
|
||||
|
||||
Reference in New Issue
Block a user