From: Ralph Corderoy Date: Mon, 15 May 2017 12:25:23 +0000 (+0100) Subject: Match `NORETURN' function prototypes by adding it to definition. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/28ec221002d755d33c41fa4b5d9673eee0abef9d?ds=sidebyside;hp=d1797eb2b2d5f3aa1b653e6a2562bf79c559eeb2 Match `NORETURN' function prototypes by adding it to definition. --- diff --git a/sbr/error.c b/sbr/error.c index 031ed2a5..96c89f58 100644 --- a/sbr/error.c +++ b/sbr/error.c @@ -45,7 +45,7 @@ advise (const char *what, const char *fmt, ...) * straightforward, e.g. longjmp(3), but it must not return to adios(). * If it does then it's a bug and adios() will abort(3) as callers do * not expect execution to continue. */ -void +void NORETURN adios (const char *what, const char *fmt, ...) { va_list ap; diff --git a/uip/inc.c b/uip/inc.c index 5ce18b62..1bc4b198 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -1002,7 +1002,7 @@ skip: } -static void +static void NORETURN inc_done (int status) { done = exit; diff --git a/uip/mhbuild.c b/uip/mhbuild.c index cdbf50f2..fe6eae7e 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -431,7 +431,7 @@ main (int argc, char **argv) } -static void +static void NORETURN unlink_done (int status) { /* diff --git a/uip/mhfree.c b/uip/mhfree.c index 260214ed..6e91623c 100644 --- a/uip/mhfree.c +++ b/uip/mhfree.c @@ -273,7 +273,7 @@ free_encoding (CT ct, int toplevel) } -void +void NORETURN freects_done (int status) { CT *ctp; diff --git a/uip/packf.c b/uip/packf.c index 14a7129d..0fd1af17 100644 --- a/uip/packf.c +++ b/uip/packf.c @@ -173,7 +173,7 @@ main (int argc, char **argv) return 1; } -static void +static void NORETURN mbxclose_done (int status) { mbx_close (file, md); diff --git a/uip/pick.c b/uip/pick.c index eb7e3573..8e05d3a1 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -318,7 +318,7 @@ main (int argc, char **argv) } -static void +static void NORETURN putzero_done (int status) { if (listsw && status && !isatty (fileno (stdout))) diff --git a/uip/rcvdist.c b/uip/rcvdist.c index 4c1716a0..3707e8b5 100644 --- a/uip/rcvdist.c +++ b/uip/rcvdist.c @@ -247,7 +247,7 @@ finished: ; } -static void +static void NORETURN unlink_done (int status) { if (backup[0]) diff --git a/uip/rcvstore.c b/uip/rcvstore.c index c6cd559e..257ef3da 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -220,7 +220,7 @@ main (int argc, char **argv) /* * Clean up and exit */ -static void +static void NORETURN unlink_done(int status) { if (tmpfilenam && *tmpfilenam) diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 2de5c90f..6f3c1262 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -1009,7 +1009,7 @@ merge_profile_entry(const char *addr, const char *host, char *vec[], int *vecp) } -static void +static void NORETURN armed_done (int status) { longjmp (env, status ? status : NOTOK);