diff --git a/packages/react-native/React/Profiler/RCTProfile.m b/packages/react-native/React/Profiler/RCTProfile.m index 2d5ddaf76185..b23f8ce56c90 100644 --- a/packages/react-native/React/Profiler/RCTProfile.m +++ b/packages/react-native/React/Profiler/RCTProfile.m @@ -315,6 +315,7 @@ void RCTProfileHookModules(RCTBridge *bridge) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wtautological-pointer-compare" +#pragma clang diagnostic ignored "-Wunreachable-code-return" if (RCTProfileTrampoline == NULL) { return; } diff --git a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm index b36c819cca85..cc45dfc44a80 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm +++ b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm @@ -156,7 +156,6 @@ static int32_t getUniqueId() return ^(NSArray *args) { if (!callback) { LOG(FATAL) << "Callback arg cannot be called more than once"; - return; } callback->call([args](jsi::Runtime &rt, jsi::Function &jsFunction) {