From 6ed6bb77775a3e47d884af60224f4611f937ee86 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Fri, 26 Jun 2015 22:56:53 +0300 Subject: [PATCH] [ios][alohalytics] Fixed compilation warning. --- 3party/Alohalytics/src/apple/http_client_apple.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/3party/Alohalytics/src/apple/http_client_apple.mm b/3party/Alohalytics/src/apple/http_client_apple.mm index fb6fd5e00e..ad75b917d7 100644 --- a/3party/Alohalytics/src/apple/http_client_apple.mm +++ b/3party/Alohalytics/src/apple/http_client_apple.mm @@ -73,7 +73,11 @@ bool HTTPClientPlatformWrapper::RunHTTPRequest() { #endif // TARGET_OS_IPHONE if (!basic_auth_user_.empty()) { NSData * loginAndPassword = [[NSString stringWithUTF8String:(basic_auth_user_ + ":" + basic_auth_password_).c_str()] dataUsingEncoding:NSUTF8StringEncoding]; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + // base64Encoding selector below was deprecated in iOS 7+, but we still need it to support 5.1+ versions. [request setValue:[NSString stringWithFormat:@"Basic %@", [loginAndPassword base64Encoding]] forHTTPHeaderField:@"Authorization"]; +#pragma clang diagnostic pop } if (!body_data_.empty()) { request.HTTPBody = [NSData dataWithBytes:body_data_.data() length:body_data_.size()];