From 87ad6f4676b9d2b53e32913ad584647d924422f7 Mon Sep 17 00:00:00 2001 From: dmaclach Date: Wed, 14 Nov 2018 08:21:38 -0800 Subject: Add deprecation markings on GTMServiceManagement. (#207) Apple has deprecated ServiceManagment as of macOS 10.10 and iOS 8.0. --- Foundation/GTMServiceManagement.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Foundation/GTMServiceManagement.c') diff --git a/Foundation/GTMServiceManagement.c b/Foundation/GTMServiceManagement.c index a57bc2a..de660f7 100644 --- a/Foundation/GTMServiceManagement.c +++ b/Foundation/GTMServiceManagement.c @@ -49,6 +49,10 @@ #include #endif +#pragma clang diagnostic push +// Ignore all of the deprecation warnings for GTMServiceManagement +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + typedef struct { CFMutableDictionaryRef dict; bool convert_non_standard_objects; @@ -787,4 +791,6 @@ CFDictionaryRef GTMSMCopyAllJobDictionaries(void) { return dict; } +#pragma clang diagnostic pop + #endif // if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4 -- cgit v1.2.3