aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMServiceManagementTestingHarness.c
diff options
context:
space:
mode:
authorGravatar dmaclach <dmaclach@gmail.com>2018-11-14 08:21:38 -0800
committerGravatar GitHub <noreply@github.com>2018-11-14 08:21:38 -0800
commit87ad6f4676b9d2b53e32913ad584647d924422f7 (patch)
tree15731dd53d0bf63d643e66a7798830160d24c234 /Foundation/GTMServiceManagementTestingHarness.c
parent8d3e7a3f41c9d0b73d91ea98b2515f87cc36ced1 (diff)
Add deprecation markings on GTMServiceManagement. (#207)
Apple has deprecated ServiceManagment as of macOS 10.10 and iOS 8.0.
Diffstat (limited to 'Foundation/GTMServiceManagementTestingHarness.c')
-rw-r--r--Foundation/GTMServiceManagementTestingHarness.c6
1 files changed, 6 insertions, 0 deletions
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