Fix some compiler warnings

These seem to appear if the project is ARC based, even though this lib is non ARC as of now
This commit is contained in:
Andreas Linde
2012-08-02 12:32:11 +02:00
parent 913c51fafb
commit f3c5b8b5e6
2 changed files with 8 additions and 2 deletions

View File

@@ -236,7 +236,10 @@
SEL presentingViewControllerSelector = NSSelectorFromString(@"presentingViewController");
UIViewController *presentingViewController = nil;
if ([self respondsToSelector:presentingViewControllerSelector]) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
presentingViewController = [self performSelector:presentingViewControllerSelector];
#pragma clang diagnostic pop
}
else {
presentingViewController = [self parentViewController];