summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2019-08-26 12:56:59 -0700
committerCommit Bot <commit-bot@chromium.org>2019-08-26 23:34:47 +0000
commitce8b8a06dd94bece219fba2cc504a504f07c6458 (patch)
treef0e800cf234f46eff70402200a9fd459a241a6b4
parent8c0e84d3c74c2109a8e55411bdb2268d8cf0775b (diff)
downloadvboot-ce8b8a06dd94bece219fba2cc504a504f07c6458.tar.gz
Makefile: Add -Wno-unknown-warning
We need to disable some warnings that only exist for clang, but we don't want GCC to choke on them with "unrecognized command line option" either. We still want external users to be able to build vboot (even host utilities) with GCC if they prefer. Therefore, add -Wno-unknown-warning to prevent GCC from choking. BRANCH=None BUG=chromium:991812 TEST=make runtests Change-Id: I753bd4c1240d5064a815e3f1d019ad3b67d686a2 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1772177 Reviewed-by: Mike Frysinger <vapier@chromium.org>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9167378d..bb60fddd 100644
--- a/Makefile
+++ b/Makefile
@@ -139,8 +139,8 @@ DEBUG_FLAGS := $(if ${DEBUG},-g -O0,-Os)
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 \
+ -Wundef -Wmissing-prototypes -Wno-trigraphs -Wredundant-decls -Wshadow \
+ -Wwrite-strings -Wstrict-aliasing -Wdate-time -Wno-unknown-warning \
-Wno-address-of-packed-member -ffunction-sections -fdata-sections \
-Wimplicit-fallthrough ${DEBUG_FLAGS}