Re: [PATCH-for-5.2] acpi-build: Fix maybe-uninitialized warning when ACPI hotplug is off

2020-11-07 Thread Ani Sinha
On Sat, Nov 7, 2020 at 9:56 PM Michael S. Tsirkin wrote: > > On Sat, Nov 07, 2020 at 08:38:51PM +0530, Ani Sinha wrote: > > This fixes the following warning (gcc 9.3.0 on Ubuntu): > > > > ../hw/i386/acpi-build.c: In function 'build_append_pci_bus_devices': > > ../hw/i386/acpi-build.c:496:9:

Re: [PATCH-for-5.2] acpi-build: Fix maybe-uninitialized warning when ACPI hotplug is off

2020-11-07 Thread Michael S. Tsirkin
On Sat, Nov 07, 2020 at 08:38:51PM +0530, Ani Sinha wrote: > This fixes the following warning (gcc 9.3.0 on Ubuntu): > > ../hw/i386/acpi-build.c: In function 'build_append_pci_bus_devices': > ../hw/i386/acpi-build.c:496:9: error: 'method' may be used uninitialized > in this function

[PATCH-for-5.2] acpi-build: Fix maybe-uninitialized warning when ACPI hotplug is off

2020-11-07 Thread Ani Sinha
This fixes the following warning (gcc 9.3.0 on Ubuntu): ../hw/i386/acpi-build.c: In function 'build_append_pci_bus_devices': ../hw/i386/acpi-build.c:496:9: error: 'method' may be used uninitialized in this function [-Werror=maybe-uninitialized] 496 | aml_append(parent_scope,