diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-10-18 16:26:06 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-10-18 16:26:06 +0000 |
commit | 747bbdf79ffa7774c1343774e2202cf13105ad6f (patch) | |
tree | 92ac8bbe9d76d182f2bf93b833eda6efda27c23e /qemu-common.h | |
parent | 78cfb07fe0dc556cae662a0fab5fe1bd33daabdb (diff) |
Suppress warnings about 'warn_unused_result' attribute directive
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-common.h')
-rw-r--r-- | qemu-common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h index 8551862c51..47272f58cb 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -3,6 +3,11 @@ #define QEMU_COMMON_H #define QEMU_NORETURN __attribute__ ((__noreturn__)) +#ifdef CONFIG_GCC_ATTRIBUTE_WARN_UNUSED_RESULT +#define QEMU_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define QEMU_WARN_UNUSED_RESULT +#endif /* 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 |