26.09.2019 9:16, no-re...@patchew.org wrote: > Patchew URL: > https://patchew.org/QEMU/20190925174400.8578-1-stefa...@redhat.com/ > > > > Hi, > > This series failed the docker-mingw@fedora build test. Please find the > testing commands and > their output below. If you have Docker installed, you can probably reproduce > it > locally. > > === TEST SCRIPT BEGIN === > #! /bin/bash > export ARCH=x86_64 > make docker-image-fedora V=1 NETWORK=1 > time make docker-test-mingw@fedora J=14 NETWORK=1 > === TEST SCRIPT END === > > CC authz/list.o > CC authz/listfile.o > /tmp/qemu-test/src/util/iov.c: In function 'qemu_iovec_init_extended': > /tmp/qemu-test/src/util/iov.c:451:9: error: 'mid_iov' may be used > uninitialized in this function [-Werror=maybe-uninitialized] > memcpy(p, mid_iov, mid_niov * sizeof(*p)); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors > > > The full log is available at > http://patchew.org/logs/20190925174400.8578-1-stefa...@redhat.com/testing.docker-mingw@fedora/?type=message. > --- > Email generated automatically by Patchew [https://patchew.org/]. > Please send your feedback to patchew-de...@redhat.com >
Actually it's obvious that it is initialized here: We go here only if mid_niov, which may be set only in "if (mid_len)", and mid_iov is set in same "if (mid_len)". My clang don't warn. Still, we may just initialize mid_iov to NULL and don't care. -- Best regards, Vladimir