On 06/13/2021 23:04,Peter Maydell<peter.mayd...@linaro.org> wrote:
On Sun, 13 Jun 2021 at 15:20, Zhiwei Jiang <elish.ji...@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