mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-23 04:28:53 +00:00
Fixed “cast drops const qualifier” warnings
This commit is contained in:
@@ -89,8 +89,10 @@
|
||||
[super layoutSubviews];
|
||||
|
||||
[CATransaction begin];
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wcast-qual"
|
||||
[CATransaction setValue:(id)kCFBooleanTrue forKey:kCATransactionDisableActions];
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
self.imageLayer.frame = self.imageFrame;
|
||||
self.imageLayer.masksToBounds = YES;
|
||||
|
||||
|
||||
@@ -63,7 +63,10 @@ static const NSUInteger ChunkSize = 16384;
|
||||
stream.zfree = Z_NULL;
|
||||
stream.opaque = Z_NULL;
|
||||
stream.avail_in = (uint)[self length];
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wcast-qual"
|
||||
stream.next_in = (Bytef *)[self bytes];
|
||||
#pragma clang diagnostic pop
|
||||
stream.total_out = 0;
|
||||
stream.avail_out = 0;
|
||||
|
||||
@@ -102,7 +105,10 @@ static const NSUInteger ChunkSize = 16384;
|
||||
stream.zalloc = Z_NULL;
|
||||
stream.zfree = Z_NULL;
|
||||
stream.avail_in = (uint)[self length];
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wcast-qual"
|
||||
stream.next_in = (Bytef *)[self bytes];
|
||||
#pragma clang diagnostic pop
|
||||
stream.total_out = 0;
|
||||
stream.avail_out = 0;
|
||||
|
||||
|
||||
@@ -58,7 +58,10 @@ static NSString *BITKeychainUtilsErrorDomain = @"BITKeychainUtilsErrorDomain";
|
||||
// version of this code (which set the password as a generic attribute instead of password data).
|
||||
|
||||
NSMutableDictionary *attributeQuery = [query mutableCopy];
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wcast-qual"
|
||||
[attributeQuery setObject: (id) kCFBooleanTrue forKey:(__bridge_transfer id) kSecReturnAttributes];
|
||||
#pragma clang diagnostic pop
|
||||
CFTypeRef attrResult = NULL;
|
||||
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef) attributeQuery, &attrResult);
|
||||
// NSDictionary *attributeResult = (__bridge_transfer NSDictionary *)attrResult;
|
||||
@@ -78,7 +81,10 @@ static NSString *BITKeychainUtilsErrorDomain = @"BITKeychainUtilsErrorDomain";
|
||||
// We have an existing item, now query for the password data associated with it.
|
||||
|
||||
NSMutableDictionary *passwordQuery = [query mutableCopy];
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wcast-qual"
|
||||
[passwordQuery setObject: (id) kCFBooleanTrue forKey: (__bridge_transfer id) kSecReturnData];
|
||||
#pragma clang diagnostic pop
|
||||
CFTypeRef resData = NULL;
|
||||
status = SecItemCopyMatching((__bridge CFDictionaryRef) passwordQuery, (CFTypeRef *) &resData);
|
||||
NSData *resultData = (__bridge_transfer NSData *)resData;
|
||||
|
||||
Reference in New Issue
Block a user