Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions third_party/Reachability/ODWReachability.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
#import <netinet/in.h>
#import <arpa/inet.h>

// The SCNetworkReachability APIs used throughout this file were deprecated
// in iOS 17.4. A full migration to NWPathMonitor is tracked separately;
// suppress the warnings for the entire file until then.
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"


NSString *const kNetworkReachabilityChangedNotification = @"NetworkReachabilityChangedNotification";

Expand Down Expand Up @@ -432,7 +438,10 @@ -(BOOL)isReachableViaWWAN

SCNetworkReachabilityFlags flags = 0;

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
if(SCNetworkReachabilityGetFlags(self.reachabilityRef, &flags))
#pragma clang diagnostic pop
{
// Check we're REACHABLE
if(flags & kSCNetworkReachabilityFlagsReachable)
Expand Down
Loading