From ece32a7c626c10bef27ab9793aa49c3323218bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Spie=C3=9F?= Date: Mon, 12 Sep 2016 21:04:22 +0200 Subject: [PATCH] Ignore pointer-bool-conversion warning in BITAttributedLabel --- Classes/BITAttributedLabel.m | 3 +++ 1 file changed, 3 insertions(+) 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 }