mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Mark __unused completion block args
Summary: Catching a couple more build warnings introduced byb50f55026asince https://github.com/facebook/react-native/pull/11797. Edit: and one more introduced byc68a708621Tested the build with UIExplorer. Closes https://github.com/facebook/react-native/pull/11865 Differential Revision: D4415630 fbshipit-source-id: 1384d56770eea8665ede8bd9abe06cf34cd14b33
This commit is contained in:
committed by
Facebook Github Bot
parent
49d7c00500
commit
9e1e52f312
@@ -37,7 +37,7 @@ RCT_EXPORT_METHOD(operationComplete:(__unused int)token result:(id)profileData e
|
||||
|
||||
// Send the request
|
||||
NSURLSession *session = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
|
||||
NSURLSessionDataTask *sessionDataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *sessionError) {
|
||||
NSURLSessionDataTask *sessionDataTask = [session dataTaskWithRequest:request completionHandler:^(__unused NSData *data, __unused NSURLResponse *response, NSError *sessionError) {
|
||||
if (sessionError) {
|
||||
RCTLogWarn(@"JS CPU Profile data failed to send. Is the packager server running locally?\nDetails: %@", error);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user