]> 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 031ed2a..96c89f5 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. */
-void
+void NORETURN
 adios (const char *what, const char *fmt, ...)
 {
     va_list ap;
index 5ce18b6..1bc4b19 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;
index cdbf50f..fe6eae7 100644 (file)
@@ -431,7 +431,7 @@ main (int argc, char **argv)
 }
 
 
-static void
+static void NORETURN
 unlink_done (int status)
 {
     /*
index 260214e..6e91623 100644 (file)
@@ -273,7 +273,7 @@ free_encoding (CT ct, int toplevel)
 }
 
 
-void
+void NORETURN
 freects_done (int status)
 {
     CT *ctp;
index 14a7129..0fd1af1 100644 (file)
@@ -173,7 +173,7 @@ main (int argc, char **argv)
     return 1;
 }
 
-static void
+static void NORETURN
 mbxclose_done (int status)
 {
     mbx_close (file, md);
index eb7e357..8e05d3a 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)))
index 4c1716a..3707e8b 100644 (file)
@@ -247,7 +247,7 @@ finished: ;
 }
 
 
-static void
+static void NORETURN
 unlink_done (int status)
 {
     if (backup[0])
index c6cd559..257ef3d 100644 (file)
@@ -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)
index 2de5c90..6f3c126 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);