From 4557278cb54630f0dc818087898bae09ee7307da Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Wed, 21 Feb 2018 19:06:24 +0800 Subject: [PATCH] Ignore the unguarded availability warning for indicator --- SDWebImage/SDWebImageIndicator.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SDWebImage/SDWebImageIndicator.m b/SDWebImage/SDWebImageIndicator.m index fe02f8b0..53830a37 100644 --- a/SDWebImage/SDWebImageIndicator.m +++ b/SDWebImage/SDWebImageIndicator.m @@ -165,6 +165,8 @@ } #endif +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunguarded-availability" - (void)startAnimatingIndicator { self.indicatorView.hidden = NO; #if SD_UIKIT @@ -207,6 +209,7 @@ self.indicatorView.doubleValue = progress * 100; #endif } +#pragma clang diagnostic pop @end