Hint to the compiler that these functions never return

This commit is contained in:
Jeff Epler 2013-11-30 10:18:54 -06:00
parent f45bd432b9
commit 2cf6867dce

View file

@ -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();