aboutsummaryrefslogtreecommitdiff
path: root/hw/qdev.h
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-10-18 16:26:06 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-10-18 16:26:06 +0000
commit747bbdf79ffa7774c1343774e2202cf13105ad6f (patch)
tree92ac8bbe9d76d182f2bf93b833eda6efda27c23e /hw/qdev.h
parent78cfb07fe0dc556cae662a0fab5fe1bd33daabdb (diff)
downloadqemu-747bbdf79ffa7774c1343774e2202cf13105ad6f.zip
qemu-747bbdf79ffa7774c1343774e2202cf13105ad6f.tar.gz
qemu-747bbdf79ffa7774c1343774e2202cf13105ad6f.tar.bz2
Suppress warnings about 'warn_unused_result' attribute directive
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r--hw/qdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/qdev.h b/hw/qdev.h
index 8cd843e..6d61b3a 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -100,7 +100,7 @@ struct CompatProperty {
DeviceState *qdev_create(BusState *bus, const char *name);
DeviceState *qdev_device_add(QemuOpts *opts);
-int qdev_init(DeviceState *dev) __attribute__((warn_unused_result));
+int qdev_init(DeviceState *dev) QEMU_WARN_UNUSED_RESULT;
void qdev_init_nofail(DeviceState *dev);
int qdev_unplug(DeviceState *dev);
void qdev_free(DeviceState *dev);