mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 15:31:42 +03:00
[acpi] Fix spurious uninitialised-variable warning on some gcc versions
Reported-by: Christian Nilsson <nikize@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -51,7 +51,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
static uint8_t acpi_checksum ( userptr_t table ) {
|
||||
struct acpi_header acpi;
|
||||
uint8_t sum = 0;
|
||||
uint8_t data;
|
||||
uint8_t data = 0;
|
||||
unsigned int i;
|
||||
|
||||
/* Read table length */
|
||||
|
||||
Reference in New Issue
Block a user