diff options
author | Richard Braun <rbraun@sceen.net> | 2017-06-25 17:49:21 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-06-25 17:49:21 +0200 |
commit | 73b44d2c58018352ebe4b280431d4cdfd0019c1e (patch) | |
tree | aaf59384df92159698d16c202b93919dc29181d7 | |
parent | 69a890f096aca015107c48bbfdfb27e53a932d24 (diff) |
error: use C11 noreturn keyword
-rw-r--r-- | error.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -30,6 +30,8 @@ #ifndef _ERROR_H #define _ERROR_H +#include <stdnoreturn.h> + #include "macros.h" /* @@ -85,6 +87,6 @@ unsigned int error_from_errno(int errno_code); * This function will report the given error and make the process exit, * using the error code as the exit() parameter. */ -void __noreturn error_die(unsigned int error); +noreturn void error_die(unsigned int error); #endif /* _ERROR_H */ |