aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar dmaclach <dmaclach@gmail.com>2018-11-13 14:37:30 -0800
committerGravatar GitHub <noreply@github.com>2018-11-13 14:37:30 -0800
commitacc00b258aeef17cff7c8326c28945dd1aec071c (patch)
treecfdda32b4dc66e9f1572bdcaa7bbca9aa2546625
parent585c6a67e867aa681dcf73b2c62f73224137af73 (diff)
Add Deprecation Notices to GTMSystemVersion (#202)
Move to NSProcessInfo where appropriate.
-rw-r--r--Foundation/GTMSystemVersion.h1
-rw-r--r--Foundation/GTMSystemVersionTest.m6
2 files changed, 7 insertions, 0 deletions
diff --git a/Foundation/GTMSystemVersion.h b/Foundation/GTMSystemVersion.h
index 2205e42..7147730 100644
--- a/Foundation/GTMSystemVersion.h
+++ b/Foundation/GTMSystemVersion.h
@@ -20,6 +20,7 @@
#import "GTMDefines.h"
// A class for getting information about what system we are running on
+NS_DEPRECATED(10_0, 10_10, 1_0, 8_0, "Use NSProcessInfo.operatingSystemVersion.")
@interface GTMSystemVersion : NSObject
// Returns the current system version major.minor.bugFix
diff --git a/Foundation/GTMSystemVersionTest.m b/Foundation/GTMSystemVersionTest.m
index 6e46ec5..9cf282b 100644
--- a/Foundation/GTMSystemVersionTest.m
+++ b/Foundation/GTMSystemVersionTest.m
@@ -19,6 +19,10 @@
#import "GTMSenTestCase.h"
#import "GTMSystemVersion.h"
+#pragma clang diagnostic push
+// Ignore all of the deprecation warnings for GTMSystemVersion
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+
@interface GTMSystemVersionTest : GTMTestCase
@end
@@ -118,3 +122,5 @@
#endif
@end
+
+#pragma clang diagnostic pop