diff --git a/Classes/BITAttributedLabel.m b/Classes/BITAttributedLabel.m index ce9eea893e..d1cf6315e9 100644 --- a/Classes/BITAttributedLabel.m +++ b/Classes/BITAttributedLabel.m @@ -1152,6 +1152,8 @@ static inline CGSize CTFramesetterSuggestFrameSizeForAttributedStringWithConstra } #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000 +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wpointer-bool-conversion" if (&NSLinkAttributeName) { [self.attributedText enumerateAttribute:NSLinkAttributeName inRange:NSMakeRange(0, self.attributedText.length) options:0 usingBlock:^(id value, __unused NSRange range, __unused BOOL *stop) { if (value) { @@ -1160,6 +1162,7 @@ static inline CGSize CTFramesetterSuggestFrameSizeForAttributedStringWithConstra } }]; } +#pragma clang diagnostic pop #endif }