Re: [PATCH] device_tree: Fix compiler error

2021-12-17 Thread Laurent Vivier
Le 08/11/2021 à 21:07, Stefan Weil a écrit : A build with gcc (Debian 10.2.1-6) 10.2.1 20210110 fails: ../../../softmmu/device_tree.c: In function ‘qemu_fdt_add_path’: ../../../softmmu/device_tree.c:560:18: error: ‘retval’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

Re: [PATCH] device_tree: Fix compiler error

2021-11-09 Thread Michal Prívozník
On 11/9/21 9:38 AM, Richard Henderson wrote: > On 11/8/21 9:07 PM, Stefan Weil wrote: >> A build with gcc (Debian 10.2.1-6) 10.2.1 20210110 fails: >> >> ../../../softmmu/device_tree.c: In function ‘qemu_fdt_add_path’: >> ../../../softmmu/device_tree.c:560:18: error: ‘retval’ may be used >> uninitia

Re: [PATCH] device_tree: Fix compiler error

2021-11-09 Thread Richard Henderson
On 11/8/21 9:07 PM, Stefan Weil wrote: A build with gcc (Debian 10.2.1-6) 10.2.1 20210110 fails: ../../../softmmu/device_tree.c: In function ‘qemu_fdt_add_path’: ../../../softmmu/device_tree.c:560:18: error: ‘retval’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 56

Re: [PATCH] device_tree: Fix compiler error

2021-11-08 Thread Stefan Weil
Am 08.11.21 um 23:43 schrieb Alistair Francis: On Tue, Nov 9, 2021 at 6:08 AM Stefan Weil wrote: A build with gcc (Debian 10.2.1-6) 10.2.1 20210110 fails: ../../../softmmu/device_tree.c: In function ‘qemu_fdt_add_path’: ../../../softmmu/device_tree.c:560:18: error: ‘retval’ may be used unini

Re: [PATCH] device_tree: Fix compiler error

2021-11-08 Thread Alistair Francis
On Tue, Nov 9, 2021 at 6:08 AM Stefan Weil wrote: > > A build with gcc (Debian 10.2.1-6) 10.2.1 20210110 fails: > > ../../../softmmu/device_tree.c: In function ‘qemu_fdt_add_path’: > ../../../softmmu/device_tree.c:560:18: error: ‘retval’ may be used > uninitialized in this function [-Werror=maybe

[PATCH] device_tree: Fix compiler error

2021-11-08 Thread Stefan Weil
A build with gcc (Debian 10.2.1-6) 10.2.1 20210110 fails: ../../../softmmu/device_tree.c: In function ‘qemu_fdt_add_path’: ../../../softmmu/device_tree.c:560:18: error: ‘retval’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 560 | int namelen, retval; |