On 11/13/19 9:00 PM, no-re...@patchew.org wrote:
Patchew URL: https://patchew.org/QEMU/20191114024635.11363-1-ebl...@redhat.com/



                  from /tmp/qemu-test/src/include/qemu/osdep.h:140,
                  from /tmp/qemu-test/src/nbd/server.c:20:
/tmp/qemu-test/src/nbd/server.c: In function 'nbd_negotiate_handle_export_name':
/usr/x86_64-w64-mingw32/sys-root/mingw/include/glib-2.0/glib/glib-autocleanups.h:28:3:
 error: 'name' may be used uninitialized in this function 
[-Werror=maybe-uninitialized]
    g_free (*pp);
    ^~~~~~~~~~~~
/tmp/qemu-test/src/nbd/server.c:435:22: note: 'name' was declared here
      g_autofree char *name;
                       ^~~~

Ha - I posted the fix to that one minute before patchew flagged it. Still, I'm not sure why my gcc didn't flag this locally, while the mingw builder did.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Reply via email to