From 85341176f85a73b94c1d785126d9e17c628287a3 Mon Sep 17 00:00:00 2001 From: dmaclach Date: Tue, 13 Nov 2018 12:46:39 -0800 Subject: Add deprecation warnings on URLArgument categories. (#198) The URLArgument categories should be replaced with usages of NSURLComponents and NSURLItems. --- Foundation/GTMNSDictionary+URLArguments.m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Foundation/GTMNSDictionary+URLArguments.m') diff --git a/Foundation/GTMNSDictionary+URLArguments.m b/Foundation/GTMNSDictionary+URLArguments.m index e9fa766..612ba5b 100644 --- a/Foundation/GTMNSDictionary+URLArguments.m +++ b/Foundation/GTMNSDictionary+URLArguments.m @@ -26,6 +26,9 @@ __attribute__((visibility("default"))) char GTMNSDictionaryURLArgumentsExportToSuppressLibToolWarning = 0; +#pragma clang diagnostic push +// Ignore all of the deprecation warnings for GTMNSString+URLArguments +#pragma clang diagnostic ignored "-Wdeprecated-declarations" @implementation NSDictionary (GTMNSDictionaryURLArgumentsAdditions) @@ -75,3 +78,5 @@ GTM_METHOD_CHECK(NSString, gtm_stringByUnescapingFromURLArgument); } @end + +#pragma clang diagnostic pop -- cgit v1.2.3