From c1d08020d4a1401fc468122be8e93294fc0e53ea Mon Sep 17 00:00:00 2001 From: Michael Schneider Date: Sat, 30 Jan 2016 20:06:02 -0800 Subject: [PATCH] Fix nullability warning in test --- Example/PINRemoteImage Tests/PINRemoteImage_Tests.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Example/PINRemoteImage Tests/PINRemoteImage_Tests.m b/Example/PINRemoteImage Tests/PINRemoteImage_Tests.m index 19e499a..02d76f5 100644 --- a/Example/PINRemoteImage Tests/PINRemoteImage_Tests.m +++ b/Example/PINRemoteImage Tests/PINRemoteImage_Tests.m @@ -229,11 +229,15 @@ - (void)testErrorOnNilURLDownload { + dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); __block NSError *outError = nil; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnonnull" [self.imageManager downloadImageWithURL:nil options:PINRemoteImageManagerDownloadOptionsNone completion:^(PINRemoteImageManagerResult *result) +#pragma clang diagnostic pop { outError = result.error; dispatch_semaphore_signal(semaphore);