diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2013-03-25 13:15:14 +0000 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-03-26 09:27:02 -0500 |
| commit | e769bdc26ded6d7681cddd9f67c5f87a4b5ba53c (patch) | |
| tree | 37ad07aff485c8e7c3df43b381351a16276fa035 /include/qemu/compiler.h | |
| parent | 54852b03711f06c5f24af72de583346922176947 (diff) | |
| download | focaccia-qemu-e769bdc26ded6d7681cddd9f67c5f87a4b5ba53c.tar.gz focaccia-qemu-e769bdc26ded6d7681cddd9f67c5f87a4b5ba53c.zip | |
hw/qdev: Abort rather than ignoring errors adding device properties
Instead of ignoring any errors that occur when adding properties to a new device in device_initfn(), check for them and abort if any occur. The most likely cause is accidentally adding a duplicate property, which is a programming error by the device author. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1364217314-7400-3-git-send-email-peter.maydell@linaro.org Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include/qemu/compiler.h')
0 files changed, 0 insertions, 0 deletions