Skip to content

Commit

Permalink
Merge pull request #343 from dropbox/silence-deprecation-warning
Browse files Browse the repository at this point in the history
Silenced a deprecation warning and an unused variable warning.
  • Loading branch information
Taylor Case authored Dec 9, 2021
2 parents ffa5b5a + 48528cd commit c91d367
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ - (NSDictionary *)headersWithRouteInfo:(NSDictionary<NSString *, NSString *> *)r
NSArray *routeAuthsSplit = [routeAuthStr componentsSeparatedByString:@","];
NSMutableArray<NSString *> *routeAuths = [NSMutableArray array];
[routeAuthsSplit enumerateObjectsUsingBlock:^(NSString *_Nonnull obj, NSUInteger idx, BOOL *_Nonnull stop) {
#pragma unused(idx)
#pragma unused(stop)
[routeAuths addObject:[obj stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]];
}];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ - (void)batchFinishUponCompletion:(DBBatchUploadData *)uploadData {

uploadData.finishArgs = sortedFinishArgs;

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[[self uploadSessionFinishBatch:sortedFinishArgs]
setResponseBlock:^(DBFILESUploadSessionFinishBatchLaunch *result, DBNilObject *routeError,
DBRequestError *error) {
Expand All @@ -429,6 +431,7 @@ - (void)batchFinishUponCompletion:(DBBatchUploadData *)uploadData {
}
queue:uploadData.pollingQueue];
});
#pragma clang diagnostic pop
}

- (void)executeProgressHandler:(DBBatchUploadData *)uploadData amountUploaded:(int64_t)amountUploaded {
Expand Down

0 comments on commit c91d367

Please sign in to comment.