mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Add noreturn attributes to command line user driver methods
This commit is contained in:
1 parent
80cecd37b5
commit
3bc20cb096
1 file changed
+3
-3
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user