Skip to content

Commit c91d367

Browse files
author
Taylor Case
authored
Merge pull request #343 from dropbox/silence-deprecation-warning
Silenced a deprecation warning and an unused variable warning.
2 parents ffa5b5a + 48528cd commit c91d367

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Source/ObjectiveDropboxOfficial/Shared/Handwritten/Networking/DBTransportBaseClient.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ - (NSDictionary *)headersWithRouteInfo:(NSDictionary<NSString *, NSString *> *)r
7070
NSArray *routeAuthsSplit = [routeAuthStr componentsSeparatedByString:@","];
7171
NSMutableArray<NSString *> *routeAuths = [NSMutableArray array];
7272
[routeAuthsSplit enumerateObjectsUsingBlock:^(NSString *_Nonnull obj, NSUInteger idx, BOOL *_Nonnull stop) {
73+
#pragma unused(idx)
74+
#pragma unused(stop)
7375
[routeAuths addObject:[obj stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]];
7476
}];
7577

Source/ObjectiveDropboxOfficial/Shared/Handwritten/Resources/DBCustomRoutes.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ - (void)batchFinishUponCompletion:(DBBatchUploadData *)uploadData {
413413

414414
uploadData.finishArgs = sortedFinishArgs;
415415

416+
#pragma clang diagnostic push
417+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
416418
[[self uploadSessionFinishBatch:sortedFinishArgs]
417419
setResponseBlock:^(DBFILESUploadSessionFinishBatchLaunch *result, DBNilObject *routeError,
418420
DBRequestError *error) {
@@ -429,6 +431,7 @@ - (void)batchFinishUponCompletion:(DBBatchUploadData *)uploadData {
429431
}
430432
queue:uploadData.pollingQueue];
431433
});
434+
#pragma clang diagnostic pop
432435
}
433436

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

0 commit comments

Comments
 (0)