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:
Andreas Linde
2015-06-23 15:09:12 +02:00
parent c3e5762d73
commit 46f0560c1f

View File

@@ -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:)]) {