From 52fa8c11f8e5217e17da74c04e8ad1e5aee9ff40 Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Tue, 7 May 2019 12:59:47 -0700 Subject: Makefile: Enable more warnings for host utilities / tests This patch adds a bunch of more warnings that are already enabled in coreboot and thus already enabled for firmware builds anyway (because coreboot just passes its CFLAGS through). Enabling it in the vboot Makefile means they also apply to host utilities and tests, which sounds desirable for consistency. Fix enough of the cruft and bad coding practices that accumulated over the years of not having warnings enabled to get it to build again (this includes making functions static, removing dead code, cleaning up prototypes, etc.). Also remove -fno-strict-aliasing from the x86 firmware build options, because it's not clear why it's there (coreboot isn't doing this, so presumably it's not needed). BRANCH=None BUG=None TEST=make runtests Change-Id: Ie4a42083c4770a4eca133b22725be9ba85b24184 Signed-off-by: Julius Werner Reviewed-on: https://chromium-review.googlesource.com/1598721 Commit-Ready: ChromeOS CL Exonerator Bot --- host/lib/extract_vmlinuz.c | 1 + 1 file changed, 1 insertion(+) (limited to 'host/lib/extract_vmlinuz.c') diff --git a/host/lib/extract_vmlinuz.c b/host/lib/extract_vmlinuz.c index 2d8a43d1..efce2ef5 100644 --- a/host/lib/extract_vmlinuz.c +++ b/host/lib/extract_vmlinuz.c @@ -9,6 +9,7 @@ #include #include "vb2_struct.h" +#include "vboot_host.h" #include "vboot_struct.h" -- cgit v1.2.1