aboutsummaryrefslogtreecommitdiff
path: root/Foundation
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2018-11-15 09:35:41 -0500
committerGravatar Thomas Van Lenten <thomasvl@google.com>2018-11-15 13:08:32 -0500
commit555c434a7d64ad7de9907bb0f0baf8f6cca685f9 (patch)
tree0e73d69a47d1bf856656955514a5caa4a73a4ddd /Foundation
parent2d1c003f0c124182e5ceb549574a53aa9bf6c5d7 (diff)
Project modernization.
- Create shared scheme to use. - Let Xcode (9.4.1) update the project files and add some warnings. - Remove -finalize (GC days are gone) - Add some more pragmas to compile cleanly. - The iOS targets had a mix of 7.0 and 8.0 min versions, so make them all 8.
Diffstat (limited to 'Foundation')
-rw-r--r--Foundation/GTMFileSystemKQueue.m6
-rw-r--r--Foundation/GTMRegex.m1
-rw-r--r--Foundation/GTMSignalHandler.m6
-rw-r--r--Foundation/GTMSystemVersion.m6
-rw-r--r--Foundation/GTMURLBuilder.m6
5 files changed, 25 insertions, 0 deletions
diff --git a/Foundation/GTMFileSystemKQueue.m b/Foundation/GTMFileSystemKQueue.m
index 7ed2f4e..a1b7094 100644
--- a/Foundation/GTMFileSystemKQueue.m
+++ b/Foundation/GTMFileSystemKQueue.m
@@ -22,6 +22,10 @@
#import "GTMDebugSelectorValidation.h"
#import "GTMTypeCasting.h"
+#pragma clang diagnostic push
+// Ignore all of the deprecation warnings for GTMFileSystemKQueue
+#pragma clang diagnostic ignored "-Wdeprecated-implementations"
+
// File descriptor for the kqueue that will hold all of our file system events.
static int gFileSystemKQueueFileDescriptor = 0;
@@ -274,3 +278,5 @@ static void SocketCallBack(CFSocketRef socketref, CFSocketCallBackType type,
}
@end
+
+#pragma clang diagnostic pop
diff --git a/Foundation/GTMRegex.m b/Foundation/GTMRegex.m
index 5649156..878d352 100644
--- a/Foundation/GTMRegex.m
+++ b/Foundation/GTMRegex.m
@@ -23,6 +23,7 @@
#pragma clang diagnostic push
// Ignore all of the deprecation warnings for GTMRegex
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#pragma clang diagnostic ignored "-Wdeprecated-implementations"
// This is the pattern to use for walking replacement text when doing
// substitutions.
diff --git a/Foundation/GTMSignalHandler.m b/Foundation/GTMSignalHandler.m
index 4d4f3e2..322aa77 100644
--- a/Foundation/GTMSignalHandler.m
+++ b/Foundation/GTMSignalHandler.m
@@ -22,6 +22,10 @@
#import <dispatch/dispatch.h>
#import "GTMDebugSelectorValidation.h"
+#pragma clang diagnostic push
+// Ignore all of the deprecation warnings for GTMSignalHandler
+#pragma clang diagnostic ignored "-Wdeprecated-implementations"
+
// Simplifying assumption: No more than one handler for a particular signal is
// alive at a time. When the second signal is registered, kqueue just updates
// the info about the first signal, which makes -dealloc time complicated (what
@@ -98,3 +102,5 @@
}
@end
+
+#pragma clang diagnostic pop
diff --git a/Foundation/GTMSystemVersion.m b/Foundation/GTMSystemVersion.m
index 6519902..06bf8ef 100644
--- a/Foundation/GTMSystemVersion.m
+++ b/Foundation/GTMSystemVersion.m
@@ -18,6 +18,10 @@
#import "GTMSystemVersion.h"
+#pragma clang diagnostic push
+// Ignore all of the deprecation warnings for GTMSystemVersion.h
+#pragma clang diagnostic ignored "-Wdeprecated-implementations"
+
#import <objc/message.h>
#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10 && \
MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_8
@@ -285,3 +289,5 @@ static NSString *const kSystemVersionPlistPath = @"/System/Library/CoreServices/
}
@end
+
+#pragma clang diagnostic pop
diff --git a/Foundation/GTMURLBuilder.m b/Foundation/GTMURLBuilder.m
index 4f1a419..fd04c49 100644
--- a/Foundation/GTMURLBuilder.m
+++ b/Foundation/GTMURLBuilder.m
@@ -23,6 +23,10 @@
#import "GTMNSDictionary+URLArguments.h"
#import "GTMNSString+URLArguments.h"
+#pragma clang diagnostic push
+// Ignore all of the deprecation warnings for GTMURLBuilder
+#pragma clang diagnostic ignored "-Wdeprecated-implementations"
+
@implementation GTMURLBuilder
@synthesize baseURLString = baseURLString_;
@@ -136,3 +140,5 @@
}
@end
+
+#pragma clang diagnostic push