mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user