From: Ralph Corderoy Date: Mon, 28 Aug 2017 16:57:04 +0000 (+0100) Subject: Give mhldone() and mhladios() the NORETURN function attribute. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b18c9d8431aca9995953c792e85ae7d9ef0f45e4?ds=inline Give mhldone() and mhladios() the NORETURN function attribute. And remove `FALLTHRU' comments after their calls. --- diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index edcf0e76..1aad6968 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -327,8 +327,8 @@ static void putch (char, unsigned long); static void intrser (int); static void pipeser (int); static void quitser (int); -static void mhladios (char *, char *, ...) CHECK_PRINTF(2, 3); -static void mhldone (int); +static void mhladios (char *, char *, ...) CHECK_PRINTF(2, 3) NORETURN; +static void mhldone (int) NORETURN; static void filterbody (struct mcomp *, char *, int, int, m_getfld_state_t); static void compile_formatfield(struct mcomp *); @@ -360,20 +360,16 @@ mhl (int argc, char **argv) case AMBIGSW: ambigsw (cp, mhlswitches); mhldone (1); - /* FALLTHRU */ case UNKWNSW: mhladios (NULL, "-%s unknown\n", cp); - /* FALLTHRU */ case HELPSW: snprintf (buf, sizeof(buf), "%s [switches] [files ...]", invo_name); print_help (buf, mhlswitches, 1); mhldone (0); - /* FALLTHRU */ case VERSIONSW: print_version(invo_name); mhldone (0); - /* FALLTHRU */ case BELLSW: bellflg = 1;