Hint to the compiler that these functions never return
This commit is contained in:
parent
f45bd432b9
commit
2cf6867dce
1 changed files with 4 additions and 0 deletions
4
ungeli.c
4
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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue