From ce8b8a06dd94bece219fba2cc504a504f07c6458 Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Mon, 26 Aug 2019 12:56:59 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1772177 Reviewed-by: Mike Frysinger --- Makefile | 4 ++-- 1 file 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} -- cgit v1.2.1