summaryrefslogtreecommitdiff
path: root/qemu-common.h
diff options
context:
space:
mode:
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-01 22:19:27 +0000
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-01 22:19:27 +0000
commita5e50b263a54a41239a90930c1a27ecb76531e1b (patch)
tree5d9ebfb07c088686e1d6ce13941da947e44d8b76 /qemu-common.h
parent173a543b36d0b2491438cf1dcc2c7bb34d59bb5c (diff)
downloadqemu-a5e50b263a54a41239a90930c1a27ecb76531e1b.tar.gz
qemu-a5e50b263a54a41239a90930c1a27ecb76531e1b.tar.bz2
qemu-a5e50b263a54a41239a90930c1a27ecb76531e1b.zip
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
Diffstat (limited to 'qemu-common.h')
-rw-r--r--qemu-common.h6
1 files changed, 3 insertions, 3 deletions
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 <windows.h>
#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. */