Ignore the warning which can not been solved by code changes, like MD5
This commit is contained in:
parent
66f783cf7d
commit
eb67ece614
|
@ -269,6 +269,8 @@
|
|||
|
||||
#define SD_MAX_FILE_EXTENSION_LENGTH (NAME_MAX - CC_MD5_DIGEST_LENGTH * 2 - 1)
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
static inline NSString * _Nonnull SDDiskCacheFileNameForKey(NSString * _Nullable key) {
|
||||
const char *str = key.UTF8String;
|
||||
if (str == NULL) {
|
||||
|
@ -287,5 +289,6 @@ static inline NSString * _Nonnull SDDiskCacheFileNameForKey(NSString * _Nullable
|
|||
r[11], r[12], r[13], r[14], r[15], ext.length == 0 ? @"" : [NSString stringWithFormat:@".%@", ext]];
|
||||
return filename;
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@end
|
||||
|
|
|
@ -47,10 +47,13 @@ static NSInteger UIActivityIndicatorViewStyleLarge = 101;
|
|||
}
|
||||
|
||||
#if SD_UIKIT
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
- (void)commonInit {
|
||||
self.indicatorView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
|
||||
self.indicatorView.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleBottomMargin;
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#if SD_MAC
|
||||
|
@ -85,6 +88,8 @@ static NSInteger UIActivityIndicatorViewStyleLarge = 101;
|
|||
|
||||
@implementation SDWebImageActivityIndicator (Conveniences)
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
+ (SDWebImageActivityIndicator *)grayIndicator {
|
||||
SDWebImageActivityIndicator *indicator = [SDWebImageActivityIndicator new];
|
||||
#if SD_UIKIT
|
||||
|
@ -168,6 +173,7 @@ static NSInteger UIActivityIndicatorViewStyleLarge = 101;
|
|||
#endif
|
||||
return indicator;
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in New Issue