Re: [PATCH] block: fix build waring

2021-06-14 Thread Eric Blake
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 [-Werro

Re: [PATCH] block: fix build waring

2021-06-14 Thread elish . jiang
gcc version 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC)

Re: [PATCH] block: fix build waring

2021-06-13 Thread Peter Maydell
On Sun, 13 Jun 2021 at 15:20, Zhiwei Jiang 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