diff --git a/SDWebImageDownloader.m b/SDWebImageDownloader.m index 81a3ae1f..53fef8b7 100644 --- a/SDWebImageDownloader.m +++ b/SDWebImageDownloader.m @@ -42,7 +42,10 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot if (NSClassFromString(@"SDNetworkActivityIndicator")) { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Warc-performSelector-leaks" id activityIndicator = [NSClassFromString(@"SDNetworkActivityIndicator") performSelector:NSSelectorFromString(@"sharedActivityIndicator")]; +#pragma clang diagnostic pop // Remove observer in case it was previously added. [[NSNotificationCenter defaultCenter] removeObserver:activityIndicator name:SDWebImageDownloadStartNotification object:nil];