On 15 November 2012 08:22, Gerd Hoffmann <[email protected]> wrote:
>   CC    s390x-softmmu/hw/s390x/event-facility.o
> cc1: warnings being treated as errors
> /home/buildbot/slave-spunk/rhel5-default/build/hw/s390x/event-facility.c: In
> function ‘command_handler’:
> /home/buildbot/slave-spunk/rhel5-default/build/hw/s390x/event-facility.c:110:
> warning: ‘rc’ may be used uninitialized in this function
> make[1]: *** [hw/s390x/event-facility.o] Error 1
> make: *** [subdir-s390x-softmmu] Error 2

handle_write_event_buf() doesn't consider the case of the qbus.children
list being empty, in which case it will return an uninitialized value.
Introduced in commit 559a17a14.

-- PMM

Reply via email to