From 2cf6867dcef03dbe48071d0207022a38676ee06b Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Sat, 30 Nov 2013 10:18:54 -0600 Subject: [PATCH] Hint to the compiler that these functions never return --- ungeli.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ungeli.c b/ungeli.c index 3b41788..64b7d63 100644 --- a/ungeli.c +++ b/ungeli.c @@ -87,11 +87,15 @@ set_mkey(const char *arg) { hextobin(mkey, sizeof(mkey), arg); } +static void +perror_fatal(const char *s) __attribute__((noreturn)); static void perror_fatal(const char *s) { perror(s); abort(); } +static void +fatal(const char *s) __attribute__((noreturn)); static void fatal(const char *s) { fprintf(stderr, "%s\n", s); abort();