On Sun, Jun 13, 2021 at 05:38:21PM +0800, Zhiwei Jiang wrote: In the subject, s/waring/warning/
> 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 > > Signed-off-by: Zhiwei Jiang <elish.ji...@ucloud.cn> > --- > block.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) This looks identical to https://lists.gnu.org/archive/html/qemu-devel/2021-05/msg01229.html which has a more complete commit message and is already on Kevin's tree for an upcoming pull request. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org