From a5e50b263a54a41239a90930c1a27ecb76531e1b Mon Sep 17 00:00:00 2001 From: malc Date: Sun, 1 Feb 2009 22:19:27 +0000 Subject: Replace noreturn with QEMU_NORETURN Thanks to Robert Riebisch for analysis [1] [1] http://marc.info/?l=qemu-devel&m=123352293319271&w=2 git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6492 c046a42c-6fe2-441c-8c8c-71466251a162 --- qemu-common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qemu-common.h') diff --git a/qemu-common.h b/qemu-common.h index 42d5e4966e..8aef55867b 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -8,9 +8,9 @@ #include #endif -#define noreturn __attribute__ ((__noreturn__)) +#define QEMU_NORETURN __attribute__ ((__noreturn__)) -/* Hack around the mess dyngen-exec.h causes: We need noreturn in files that +/* Hack around the mess dyngen-exec.h causes: We need QEMU_NORETURN in files that cannot include the following headers without conflicts. This condition has to be removed once dyngen is gone. */ #ifndef __DYNGEN_EXEC_H__ @@ -144,7 +144,7 @@ void *get_mmap_addr(unsigned long size); /* Error handling. */ -void noreturn hw_error(const char *fmt, ...) +void QEMU_NORETURN hw_error(const char *fmt, ...) __attribute__ ((__format__ (__printf__, 1, 2))); /* IO callbacks. */ -- cgit v1.2.3