diff options
author | dmaclach <dmaclach@gmail.com> | 2018-11-13 20:49:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 20:49:19 -0800 |
commit | 6a5a6d54cc4ffba4660dbd176c1074ed845134ae (patch) | |
tree | ee56e14d4f06d4bef3f9ac606151a3c14684825f /Foundation/GTMFileSystemKQueue.m | |
parent | 70d01d9ef4a77e1a491a51a3d7ff8645507c39a0 (diff) |
Deprecate GTMFileSystemKqueue. (#204)
You should use libdispatch with a DISPATCH_SOURCE_TYPE_VNODE source.
Diffstat (limited to 'Foundation/GTMFileSystemKQueue.m')
-rw-r--r-- | Foundation/GTMFileSystemKQueue.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Foundation/GTMFileSystemKQueue.m b/Foundation/GTMFileSystemKQueue.m index a66dc47..7ed2f4e 100644 --- a/Foundation/GTMFileSystemKQueue.m +++ b/Foundation/GTMFileSystemKQueue.m @@ -96,6 +96,10 @@ static CFSocketRef gRunLoopSocket = NULL; return path_; } +#pragma clang diagnostic push +// Ignore all of the deprecation warnings for GTMFileSystemKQueue +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + // Cribbed from Advanced Mac OS X Programming. static void SocketCallBack(CFSocketRef socketref, CFSocketCallBackType type, CFDataRef address, const void *data, void *info) { @@ -136,6 +140,8 @@ static void SocketCallBack(CFSocketRef socketref, CFSocketCallBackType type, [pool drain]; } +#pragma clang diagnostic pop + // Cribbed from Advanced Mac OS X Programming - (void)addFileDescriptorMonitor:(int)fd { _GTMDevAssert(gRunLoopSocket == NULL, @"socket should be NULL at this point"); |