aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMServiceManagement.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/GTMServiceManagement.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/GTMServiceManagement.c')
-rw-r--r--Foundation/GTMServiceManagement.c6
1 files changed, 6 insertions, 0 deletions
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 <sys/sysctl.h>
#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