Add noreturn attributes to command line user driver methods

This commit is contained in:
Zorg committed 2020-12-31 11:17:55 -08:00
1 parent 80cecd37b5
commit 3bc20cb096
1 file changed
+3 -3
+3 -3
View File
@@ -174,7 +174,7 @@
}
}
- (void)showUpdateNotFoundWithAcknowledgement:(void (^)(void))__unused acknowledgement
- (void)showUpdateNotFoundWithAcknowledgement:(void (^)(void))__unused acknowledgement __attribute__((noreturn))
{
if (self.verbose) {
fprintf(stderr, "No new update available!\n");
@@ -182,7 +182,7 @@
exit(EXIT_SUCCESS);
}
- (void)showUpdaterError:(NSError *)error acknowledgement:(void (^)(void))__unused acknowledgement
- (void)showUpdaterError:(NSError *)error acknowledgement:(void (^)(void))__unused acknowledgement __attribute__((noreturn))
{
fprintf(stderr, "Error: Update has failed: %s\n", error.localizedDescription.UTF8String);
exit(EXIT_FAILURE);
@@ -268,7 +268,7 @@
[self.coreComponent acceptAcknowledgement];
}
- (void)dismissUpdateInstallation
- (void)dismissUpdateInstallation __attribute__((noreturn))
{
if (self.verbose) {
fprintf(stderr, "Exiting.\n");