Use assert to silence compiler warning and remove noise diagnotics pragma

This commit is contained in:
Michael Starke
2020-07-01 14:33:27 +02:00
parent fe7c647bcf
commit 8f4f3f7053

View File

@@ -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;
}