summaryrefslogtreecommitdiffstats
path: root/include/qemu/compiler.h
diff options
context:
space:
mode:
authorMarc-André Lureau2022-02-23 21:58:22 +0100
committerMarc-André Lureau2022-03-22 11:40:51 +0100
commitc08401793a1f298b4d52410835b01ca9b64c313a (patch)
treedc6e619b3732ab994e9597f26bb8a98b7cdf8430 /include/qemu/compiler.h
parentReplace GCC_FMT_ATTR with G_GNUC_PRINTF (diff)
downloadqemu-c08401793a1f298b4d52410835b01ca9b64c313a.tar.gz
qemu-c08401793a1f298b4d52410835b01ca9b64c313a.tar.xz
qemu-c08401793a1f298b4d52410835b01ca9b64c313a.zip
compiler.h: replace QEMU_WARN_UNUSED_RESULT with G_GNUC_WARN_UNUSED_RESULT
One less qemu-specific macro. It also helps to make some headers/units only depend on glib, and thus moved in standalone projects eventually. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'include/qemu/compiler.h')
-rw-r--r--include/qemu/compiler.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h
index f2bd050e3b..8385e477c1 100644
--- a/include/qemu/compiler.h
+++ b/include/qemu/compiler.h
@@ -19,8 +19,6 @@
#define QEMU_NORETURN __attribute__ ((__noreturn__))
-#define QEMU_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
-
#define QEMU_SENTINEL __attribute__((sentinel))
#if defined(_WIN32) && (defined(__x86_64__) || defined(__i386__))