Mercurial > irccd
changeset 1088:59bcb2c6850a
irccd: use C11 noreturn in Duktape
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 21 Jul 2021 08:45:10 +0200 |
parents | eee4d67d78a8 |
children | 16e66403ea66 |
files | extern/libduktape/duk_config.h |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/extern/libduktape/duk_config.h Wed Jul 21 08:41:38 2021 +0200 +++ b/extern/libduktape/duk_config.h Wed Jul 21 08:45:10 2021 +0200 @@ -62,6 +62,8 @@ #if !defined(DUK_CONFIG_H_INCLUDED) #define DUK_CONFIG_H_INCLUDED +#include <stdnoreturn.h> + /* * Intermediate helper defines */ @@ -1034,7 +1036,7 @@ #define DUK_VA_COPY(dest,src) __va_copy(dest,src) #endif -#define DUK_NORETURN(decl) decl __attribute__((noreturn)) +#define DUK_NORETURN(decl) noreturn decl #if defined(__clang__) && defined(__has_builtin) #if __has_builtin(__builtin_unreachable)