mirror of
https://github.com/MacPass/MacPass.git
synced 2026-02-02 02:48:23 +00:00
Use assert to silence compiler warning and remove noise diagnotics pragma
This commit is contained in:
@@ -100,13 +100,8 @@ typedef NS_OPTIONS(NSInteger, MPAppStartupState) {
|
|||||||
object:nil];
|
object:nil];
|
||||||
|
|
||||||
/* We know that we do not use the variable after instantiation */
|
/* 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];
|
MPDocumentController *documentController = [[MPDocumentController alloc] init];
|
||||||
#pragma clang diagnostic pop
|
NSAssert(documentController, @"Custom document controller cannot be nil");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user