diff options
| author | Daniel P. Berrange | 2015-07-31 12:14:35 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2015-08-13 13:08:30 +0200 |
| commit | 94aaca6457e52bb9c8a53af3c89bfeec40afadfc (patch) | |
| tree | 76c85edd9230359d91e4d9dba7807f4d19dfde82 /tests/qapi-schema/data-array-empty.json | |
| parent | virtio-net: remove useless codes (diff) | |
| download | qemu-94aaca6457e52bb9c8a53af3c89bfeec40afadfc.tar.gz qemu-94aaca6457e52bb9c8a53af3c89bfeec40afadfc.tar.xz qemu-94aaca6457e52bb9c8a53af3c89bfeec40afadfc.zip | |
acpi: avoid potential uninitialized access to cpu_hp_io_base
When building QEMU with Mingw64 toolchain I see a warning
CC x86_64-softmmu/hw/i386/acpi-build.o
hw/i386/acpi-build.c: In function 'acpi_build':
hw/i386/acpi-build.c:1138:9: warning: 'pm.cpu_hp_io_base' may be used uninitialized in this function [-Wmaybe-uninitialized]
aml_append(crs,
^
hw/i386/acpi-build.c:1666:16: note: 'pm.cpu_hp_io_base' was declared here
AcpiPmInfo pm;
^
In acpi_get_pm_info() some of the fields are pre-initialized
to 0, but this one was missed.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'tests/qapi-schema/data-array-empty.json')
0 files changed, 0 insertions, 0 deletions
