From 48528cd221fa9d2239f05110421b287498240cf4 Mon Sep 17 00:00:00 2001 From: Taylor Case Date: Wed, 8 Dec 2021 11:58:02 -0800 Subject: [PATCH] Silenced a deprecation warning and an unused variable warning. --- .../Shared/Handwritten/Networking/DBTransportBaseClient.m | 2 ++ .../Shared/Handwritten/Resources/DBCustomRoutes.m | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Source/ObjectiveDropboxOfficial/Shared/Handwritten/Networking/DBTransportBaseClient.m b/Source/ObjectiveDropboxOfficial/Shared/Handwritten/Networking/DBTransportBaseClient.m index 759cb0bbf..717d6a3fa 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Handwritten/Networking/DBTransportBaseClient.m +++ b/Source/ObjectiveDropboxOfficial/Shared/Handwritten/Networking/DBTransportBaseClient.m @@ -70,6 +70,8 @@ - (NSDictionary *)headersWithRouteInfo:(NSDictionary *)r NSArray *routeAuthsSplit = [routeAuthStr componentsSeparatedByString:@","]; NSMutableArray *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]]]; }]; diff --git a/Source/ObjectiveDropboxOfficial/Shared/Handwritten/Resources/DBCustomRoutes.m b/Source/ObjectiveDropboxOfficial/Shared/Handwritten/Resources/DBCustomRoutes.m index 1e5cfa933..6a76c2044 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Handwritten/Resources/DBCustomRoutes.m +++ b/Source/ObjectiveDropboxOfficial/Shared/Handwritten/Resources/DBCustomRoutes.m @@ -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) { @@ -429,6 +431,7 @@ - (void)batchFinishUponCompletion:(DBBatchUploadData *)uploadData { } queue:uploadData.pollingQueue]; }); +#pragma clang diagnostic pop } - (void)executeProgressHandler:(DBBatchUploadData *)uploadData amountUploaded:(int64_t)amountUploaded {