qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] block: fix build waring


From: elish . jiang
Subject: Re: [PATCH] block: fix build waring
Date: Mon, 14 Jun 2021 19:51:45 +0800

gcc version 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC)


On 06/13/2021 23:04Peter Maydell<peter.maydell@linaro.org> wrote:
On Sun, 13 Jun 2021 at 15:20, Zhiwei Jiang <elish.jiang@ucloud.cn> wrote:

when i compile this file with some error message
../block.c: In function ‘bdrv_replace_node_common’:
../block.c:4903:9: error: ‘to_cow_parent’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]
bdrv_remove_filter_or_cow_child(to_cow_parent, tran);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors


Could you provide the compiler version when reporting
fails-to-compile issues, please? (This is useful for us
to get an idea of whether the problem is an old compiler
that's not smart enough to figure out that something's not
used uninitialized, or a new compiler that does more checking.)

thanks
-- PMM


reply via email to

[Prev in Thread] Current Thread [Next in Thread]