diff options
author | Michael Brown | 2017-07-28 21:19:31 +0200 |
---|---|---|
committer | Michael Brown | 2017-07-28 21:19:31 +0200 |
commit | 51a79731f6a94e48cfe355165c330ce7a6892e9a (patch) | |
tree | 0933f0ff1eddfeede5bb10a0f2204a85bc28e970 /src/core | |
parent | [acpi] Compute and check checksum for ACPI tables (diff) | |
download | ipxe-51a79731f6a94e48cfe355165c330ce7a6892e9a.tar.gz ipxe-51a79731f6a94e48cfe355165c330ce7a6892e9a.tar.xz ipxe-51a79731f6a94e48cfe355165c330ce7a6892e9a.zip |
[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>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/acpi.c b/src/core/acpi.c index 07679153..e6912afa 100644 --- a/src/core/acpi.c +++ b/src/core/acpi.c @@ -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 */ |