Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/react-native/React/Profiler/RCTProfile.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ static int32_t getUniqueId()
return ^(NSArray *args) {
if (!callback) {
LOG(FATAL) << "Callback arg cannot be called more than once";
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunreachable-code-return"
return;
#pragma clang diagnostic pop
}

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