Skip to content

Commit 6defeae

Browse files
ingridwangfacebook-github-bot
authored andcommitted
Fixing unreachable-code-return in react-native-github (facebook#56093)
Summary: ## Changelog [iOS][Fixed] - Addressing -Wunreachable-code-return issues. Reviewed By: javache Differential Revision: D96507093
1 parent 1132229 commit 6defeae

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native/React/Profiler/RCTProfile.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ void RCTProfileHookModules(RCTBridge *bridge)
315315

316316
#pragma clang diagnostic push
317317
#pragma clang diagnostic ignored "-Wtautological-pointer-compare"
318+
#pragma clang diagnostic ignored "-Wunreachable-code-return"
318319
if (RCTProfileTrampoline == NULL) {
319320
return;
320321
}

packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ static int32_t getUniqueId()
156156
return ^(NSArray *args) {
157157
if (!callback) {
158158
LOG(FATAL) << "Callback arg cannot be called more than once";
159-
return;
160159
}
161160

162161
callback->call([args](jsi::Runtime &rt, jsi::Function &jsFunction) {

0 commit comments

Comments
 (0)