diff --git a/third_party/Reachability/ODWReachability.m b/third_party/Reachability/ODWReachability.m index 7947f7df0..17da230b5 100644 --- a/third_party/Reachability/ODWReachability.m +++ b/third_party/Reachability/ODWReachability.m @@ -31,6 +31,12 @@ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF #import #import +// 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"; @@ -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)