From 8f4f3f7053e1190334f8d852c97adf5cd3cefd7d Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Wed, 1 Jul 2020 14:33:27 +0200 Subject: [PATCH] Use assert to silence compiler warning and remove noise diagnotics pragma --- MacPass/MPAppDelegate.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/MacPass/MPAppDelegate.m b/MacPass/MPAppDelegate.m index 942ca07b..c0c00893 100644 --- a/MacPass/MPAppDelegate.m +++ b/MacPass/MPAppDelegate.m @@ -100,13 +100,8 @@ typedef NS_OPTIONS(NSInteger, MPAppStartupState) { object:nil]; /* We know that we do not use the variable after instantiation */ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunused-variable" MPDocumentController *documentController = [[MPDocumentController alloc] init]; -#pragma clang diagnostic pop - - - + NSAssert(documentController, @"Custom document controller cannot be nil"); } return self; }