Skip to content

Commit

Permalink
Mark __unused completion block args
Browse files Browse the repository at this point in the history
Summary:
Catching a couple more build warnings introduced by b50f550 since #11797.

Edit: and one more introduced by c68a708

Tested the build with UIExplorer.
Closes #11865

Differential Revision: D4415630

fbshipit-source-id: 1384d56770eea8665ede8bd9abe06cf34cd14b33
  • Loading branch information
rh389 authored and facebook-github-bot committed Jan 13, 2017
1 parent 49d7c00 commit 9e1e52f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion React/Base/RCTTouchHandler.m
Expand Up @@ -345,7 +345,7 @@ - (void)cancel

#pragma mark - UIGestureRecognizerDelegate

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
- (BOOL)gestureRecognizer:(__unused UIGestureRecognizer *)gestureRecognizer shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
// Same condition for `failure of` as for `be prevented by`.
return [self canBePreventedByGestureRecognizer:otherGestureRecognizer];
Expand Down
2 changes: 1 addition & 1 deletion React/Modules/JSCSamplingProfiler.m
Expand Up @@ -37,7 +37,7 @@ @implementation JSCSamplingProfiler

// 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 {
Expand Down

0 comments on commit 9e1e52f

Please sign in to comment.