From 46f0560c1f8fdca92ac5d313c01eebb5d272964f Mon Sep 17 00:00:00 2001 From: Andreas Linde Date: Tue, 23 Jun 2015 15:09:12 +0200 Subject: [PATCH] Ignore deprecation warning with Xcode 7 This is in our own delegate, so it is safe to turn this on without fear ;) --- Classes/BITCrashManager.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Classes/BITCrashManager.m b/Classes/BITCrashManager.m index 95b71ec19b..e90ea815a9 100644 --- a/Classes/BITCrashManager.m +++ b/Classes/BITCrashManager.m @@ -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:)]) {