Re: [PATCH] hw/loongarch: remove acpi-build.c unused variable 'aml_len'

2022-08-05 Thread Richard Henderson
On 7/20/22 21:00, Song Gao wrote: @@ -413,7 +413,6 @@ static void acpi_build(AcpiBuildTables *tables, MachineState *machine) AcpiFadtData fadt_data; unsigned facs, rsdt, fadt, dsdt; uint8_t *u; -size_t aml_len = 0; ... @@ -451,7 +444,6 @@ static void

Re: [PATCH] hw/loongarch: remove acpi-build.c unused variable 'aml_len'

2022-08-05 Thread Richard Henderson
On 7/20/22 21:00, Song Gao wrote: Fix a compiler warning on openbsd: ../src/hw/loongarch/acpi-build.c:416:12: warning: variable 'aml_len' set but not used [-Wunused-but-set-variable] size_t aml_len = 0; ^ Reported-by: Peter Maydell Signed-off-by: Song Gao ---

Re: [PATCH] hw/loongarch: remove acpi-build.c unused variable 'aml_len'

2022-08-05 Thread gaosong
Ping for 7.1 On 2022/7/24 上午11:27, Richard Henderson wrote: On 7/21/22 09:30, Song Gao wrote: Fix a compiler warning on openbsd: ../src/hw/loongarch/acpi-build.c:416:12: warning: variable 'aml_len' set but not used [-Wunused-but-set-variable] size_t aml_len = 0;     ^

Re: [PATCH] hw/loongarch: remove acpi-build.c unused variable 'aml_len'

2022-07-23 Thread Richard Henderson
On 7/21/22 09:30, Song Gao wrote: Fix a compiler warning on openbsd: ../src/hw/loongarch/acpi-build.c:416:12: warning: variable 'aml_len' set but not used [-Wunused-but-set-variable] size_t aml_len = 0; ^ Reported-by: Peter Maydell Signed-off-by: Song Gao --- Reviewed-by:

[PATCH] hw/loongarch: remove acpi-build.c unused variable 'aml_len'

2022-07-20 Thread Song Gao
Fix a compiler warning on openbsd: ../src/hw/loongarch/acpi-build.c:416:12: warning: variable 'aml_len' set but not used [-Wunused-but-set-variable] size_t aml_len = 0; ^ Reported-by: Peter Maydell Signed-off-by: Song Gao --- hw/loongarch/acpi-build.c | 8 1 file