summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--utility/load_kernel_test.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4c051357..708d490a 100644
--- a/Makefile
+++ b/Makefile
@@ -140,7 +140,8 @@ WERROR := -Werror
FIRMWARE_FLAGS := -nostdinc -ffreestanding -fno-builtin -fno-stack-protector
COMMON_FLAGS := -pipe ${WERROR} -Wall -Wstrict-prototypes -Wtype-limits \
-Wundef -Wmissing-prototypes -Wno-trigraphs -Wredundant-decls \
- -Wwrite-strings -Wstrict-aliasing -Wshadow -Wdate-time ${DEBUG_FLAGS}
+ -Wwrite-strings -Wstrict-aliasing -Wshadow -Wdate-time \
+ -Wno-address-of-packed-member ${DEBUG_FLAGS}
# Note: FIRMWARE_ARCH is defined by the Chromium OS ebuild.
ifeq (${FIRMWARE_ARCH}, arm)
diff --git a/utility/load_kernel_test.c b/utility/load_kernel_test.c
index 2fbf0c54..fe73fa8b 100644
--- a/utility/load_kernel_test.c
+++ b/utility/load_kernel_test.c
@@ -82,7 +82,7 @@ vb2_error_t VbExDiskWrite(VbExDiskHandle_t handle, uint64_t lba_start,
int main(int argc, char* argv[]) {
const char* image_name;
- uint64_t key_size;
+ uint64_t key_size = 0;
uint8_t* key_blob = NULL;
VbSharedDataHeader* shared;
struct vb2_gbb_header* gbb;