From 7331eff2d6d245ed23765480adf9d095eb3f869f Mon Sep 17 00:00:00 2001 From: Andreas Linde Date: Thu, 12 Feb 2015 15:30:15 +0100 Subject: [PATCH] Fix a warning Fix a compiler warning when only building for simulator --- Classes/BITUpdateManager.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Classes/BITUpdateManager.m b/Classes/BITUpdateManager.m index 49e792947d..3defc88f01 100644 --- a/Classes/BITUpdateManager.m +++ b/Classes/BITUpdateManager.m @@ -741,7 +741,8 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:BITHockeyLocalizedString(@"UpdateWarning") message:BITHockeyLocalizedString(@"UpdateSimulatorMessage") delegate:nil cancelButtonTitle:BITHockeyLocalizedString(@"HockeyOK") otherButtonTitles:nil]; [alert show]; return NO; -#endif + +#else NSString *extraParameter = [NSString string]; if (_sendUsageData && self.installationIdentification && self.installationIdentificationType) { @@ -761,6 +762,8 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) { _didStartUpdateProcess = success; return success; + +#endif }