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/GTMServiceManagementTestingHarness.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Foundation/GTMServiceManagementTestingHarness.c') diff --git a/Foundation/GTMServiceManagementTestingHarness.c b/Foundation/GTMServiceManagementTestingHarness.c index bb86071..0f5cc3a 100644 --- a/Foundation/GTMServiceManagementTestingHarness.c +++ b/Foundation/GTMServiceManagementTestingHarness.c @@ -18,6 +18,10 @@ #include "GTMServiceManagement.h" +#pragma clang diagnostic push +// Ignore all of the deprecation warnings for GTMServiceManagement +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + int main(int argc, const char** argv) { #if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4 CFErrorRef error = NULL; @@ -30,3 +34,5 @@ int main(int argc, const char** argv) { #endif // if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4 return 0; } + +#pragma clang diagnostic pop -- cgit v1.2.3