Permalink
Browse files

Mark __unused completion block args

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 9e1e52f31223856d5e9530d1e732b9a8a6054269
Showing with 2 additions and 2 deletions.
  1. +1 −1 React/Base/RCTTouchHandler.m
  2. +1 −1 React/Modules/JSCSamplingProfiler.m
@@ -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];
@@ -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 {

0 comments on commit 9e1e52f

Please sign in to comment.