Re: [Qemu-devel] [PATCH] Fix QEMU_WARN_UNUSED_RESULT

2010-01-19 Thread Anthony Liguori
On 01/15/2010 05:56 AM, Kevin Wolf wrote: Since commit 747bbdf7 QEMU_WARN_UNUSED_RESULT is never defined as it is conditional on a define from config-host.h which is included only later. Include that file earlier to get the warnings back. Reactivating it unfortunately leads to some warnings abou

Re: [Qemu-devel] [PATCH] Fix QEMU_WARN_UNUSED_RESULT

2010-01-15 Thread Markus Armbruster
Kevin Wolf writes: > Since commit 747bbdf7 QEMU_WARN_UNUSED_RESULT is never defined as it is > conditional on a define from config-host.h which is included only later. > Include that file earlier to get the warnings back. > > Reactivating it unfortunately leads to some warnings about unused qdev_

[Qemu-devel] [PATCH] Fix QEMU_WARN_UNUSED_RESULT

2010-01-15 Thread Kevin Wolf
Since commit 747bbdf7 QEMU_WARN_UNUSED_RESULT is never defined as it is conditional on a define from config-host.h which is included only later. Include that file earlier to get the warnings back. Reactivating it unfortunately leads to some warnings about unused qdev_init results. These calls are