mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-01 08:45:48 +00:00
Ignore deprecation warning with Xcode 7
This is in our own delegate, so it is safe to turn this on without fear ;)
This commit is contained in:
@@ -616,7 +616,10 @@ static void uncaught_cxx_exception_handler(const BITCrashUncaughtCXXExceptionInf
|
||||
NSString *username = [self stringValueFromKeychainForKey:kBITHockeyMetaUserName] ?: @"";
|
||||
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(userNameForCrashManager:)]) {
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
username = [self.delegate userNameForCrashManager:self] ?: @"";
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
if ([BITHockeyManager sharedHockeyManager].delegate &&
|
||||
[[BITHockeyManager sharedHockeyManager].delegate respondsToSelector:@selector(userNameForHockeyManager:componentManager:)]) {
|
||||
@@ -650,7 +653,10 @@ static void uncaught_cxx_exception_handler(const BITCrashUncaughtCXXExceptionInf
|
||||
#endif
|
||||
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(userEmailForCrashManager:)]) {
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
useremail = [self.delegate userEmailForCrashManager:self] ?: @"";
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
if ([BITHockeyManager sharedHockeyManager].delegate &&
|
||||
[[BITHockeyManager sharedHockeyManager].delegate respondsToSelector:@selector(userEmailForHockeyManager:componentManager:)]) {
|
||||
|
||||
Reference in New Issue
Block a user