On 03/13/2012 07:39 AM, Paolo Bonzini wrote: > Il 13/03/2012 14:36, Orit Wasserman ha scritto: >> I get to following compile error: >> In function ‘virtio_blk_handle_request’: >> virtio-blk.c:264:28: error: ‘status’ may be used uninitialized in this >> function [-Werror=uninitialized] >> virtio-blk.c:151:9: note: ‘status’ was declared here >> cc1: all warnings being treated as errors >> >> Are you using -disable-werror ? > > No, perhaps a different compiler though.
Or a difference in -O level. gcc is notoriously bad at missing -Wuninitialized at -O0, and not warning until -O1 or -O2. [I'm still impressed at how the Java language was able to mandate uninitialized detection into the compiler as a required part of the language.] -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature