diff --git a/util/net/http_transport_mac.mm b/util/net/http_transport_mac.mm index af523c69..971a9986 100644 --- a/util/net/http_transport_mac.mm +++ b/util/net/http_transport_mac.mm @@ -181,9 +181,15 @@ bool HTTPTransportMac::ExecuteSynchronously(std::string* response_body) { NSURLResponse* response = nil; NSError* error = nil; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + // Deprecated in OS X 10.11. The suggested replacement, NSURLSession, is + // only available on 10.9 and later, and this needs to run on earlier + // releases. NSData* body = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error]; +#pragma clang diagnostic pop if (error) { LOG(ERROR) << [[error localizedDescription] UTF8String] << " ("