From 84280bbf8878573af3c88970397889ad7f240564 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 5 Jul 2009 19:22:28 -0700 Subject: Change noreturn macro to no_return to avoid header file problems Change the "noreturn" macro to "no_return", to avoid problems with system header files which use __attribute__((noreturn)) rather than __attribute__((__noreturn__)) as is appropriate for system headers. Signed-off-by: H. Peter Anvin --- nasmlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nasmlib.c') diff --git a/nasmlib.c b/nasmlib.c index 2dd3a65..6314dc6 100644 --- a/nasmlib.c +++ b/nasmlib.c @@ -205,7 +205,7 @@ char *nasm_strndup(const char *s, size_t len) return p; } -noreturn nasm_assert_failed(const char *file, int line, const char *msg) +no_return nasm_assert_failed(const char *file, int line, const char *msg) { nasm_malloc_error(ERR_FATAL, "assertion %s failed at %s:%d", msg, file, line); -- cgit v1.2.3