]> diplodocus.org Git - nmh/commitdiff
Match `NORETURN' function prototypes by adding it to definition.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 15 May 2017 12:25:23 +0000 (13:25 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 15 May 2017 12:25:23 +0000 (13:25 +0100)
sbr/error.c
uip/inc.c
uip/mhbuild.c
uip/mhfree.c
uip/packf.c
uip/pick.c
uip/rcvdist.c
uip/rcvstore.c
uip/sendsbr.c

index 031ed2a51283b79027cf37e349d7ffed2c65c065..96c89f5812ce92b003803cb835ea05f14d354c61 100644 (file)
@@ -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. */
  * 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;
 adios (const char *what, const char *fmt, ...)
 {
     va_list ap;
index 5ce18b624d0d772fcf0ac0e129ce035729d29344..1bc4b19835404b4d8de23986b0ba6674ecef0aa5 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -1002,7 +1002,7 @@ skip:
 }
 
 
 }
 
 
-static void
+static void NORETURN
 inc_done (int status)
 {
     done = exit;
 inc_done (int status)
 {
     done = exit;
index cdbf50f221531f78c3fbe3d4d7d40221092679ba..fe6eae7eee918170d776d646002817be882cc72d 100644 (file)
@@ -431,7 +431,7 @@ main (int argc, char **argv)
 }
 
 
 }
 
 
-static void
+static void NORETURN
 unlink_done (int status)
 {
     /*
 unlink_done (int status)
 {
     /*
index 260214edf117b766939f841baa9f57551dd87154..6e91623ccbc714f69a3be07345a7a5be8c95d387 100644 (file)
@@ -273,7 +273,7 @@ free_encoding (CT ct, int toplevel)
 }
 
 
 }
 
 
-void
+void NORETURN
 freects_done (int status)
 {
     CT *ctp;
 freects_done (int status)
 {
     CT *ctp;
index 14a7129d66675619cde104e4cba4191825722b09..0fd1af178fdc3d1cd6d927afdb601147f9580cbc 100644 (file)
@@ -173,7 +173,7 @@ main (int argc, char **argv)
     return 1;
 }
 
     return 1;
 }
 
-static void
+static void NORETURN
 mbxclose_done (int status)
 {
     mbx_close (file, md);
 mbxclose_done (int status)
 {
     mbx_close (file, md);
index eb7e3573f0b258a2f20cdf47795e9a452e99883a..8e05d3a1e52848a01f70a3611b35531ee2cd52d1 100644 (file)
@@ -318,7 +318,7 @@ main (int argc, char **argv)
 }
 
 
 }
 
 
-static void
+static void NORETURN
 putzero_done (int status)
 {
     if (listsw && status && !isatty (fileno (stdout)))
 putzero_done (int status)
 {
     if (listsw && status && !isatty (fileno (stdout)))
index 4c1716a015c4150f1949b8f1b3e7b4002f34ea0d..3707e8b5e047f0bfbd686995295705b83b206f53 100644 (file)
@@ -247,7 +247,7 @@ finished: ;
 }
 
 
 }
 
 
-static void
+static void NORETURN
 unlink_done (int status)
 {
     if (backup[0])
 unlink_done (int status)
 {
     if (backup[0])
index c6cd559e3c594902409fc79f9f2e467b8ce85022..257ef3da7e677f95e8fa5b2d036970cde014b409 100644 (file)
@@ -220,7 +220,7 @@ main (int argc, char **argv)
 /*
  * Clean up and exit
  */
 /*
  * Clean up and exit
  */
-static void
+static void NORETURN
 unlink_done(int status)
 {
     if (tmpfilenam && *tmpfilenam)
 unlink_done(int status)
 {
     if (tmpfilenam && *tmpfilenam)
index 2de5c90f478d8c219dcbc067110f399f712864cf..6f3c12622c5735b4e61d27291a11e770d1596312 100644 (file)
@@ -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);
 armed_done (int status)
 {
     longjmp (env, status ? status : NOTOK);