Skip to content

Commit 02a239d

Browse files
ingridwangmeta-codesync[bot]
authored andcommitted
Fixing unreachable-code-return in react-native-github (facebook#56093)
Summary: Pull Request resolved: facebook#56093 ## Changelog [iOS][Fixed] - Addressing -Wunreachable-code-return issues. Reviewed By: javache Differential Revision: D96507093
1 parent 0b1ce70 commit 02a239d

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

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)