diff --git a/React/CxxModule/RCTNativeModule.mm b/React/CxxModule/RCTNativeModule.mm index ef9613776..2b35f0579 100644 --- a/React/CxxModule/RCTNativeModule.mm +++ b/React/CxxModule/RCTNativeModule.mm @@ -67,6 +67,8 @@ void RCTNativeModule::invoke(unsigned int methodId, folly::dynamic &¶ms, int if (callId != -1) { fbsystrace_end_async_flow(TRACE_TAG_REACT_APPS, "native", callId); } + #else + (void)(callId); #endif invokeInner(weakBridge, weakModuleData, methodId, std::move(params)); };