summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2015-03-12 03:56:06 -0400
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-03-13 02:24:55 +0000
commit47c2aa0b71cabac1b50752a146cb2d8d4e0f304e (patch)
tree2b32cceb39062982ddbcec2fef3140aab8365030
parent89901f00ef04b38cd2ef6f59e7e26630d75ab5e6 (diff)
downloadvboot-47c2aa0b71cabac1b50752a146cb2d8d4e0f304e.tar.gz
split -Werror out into a dedicated var
This lets us control it explicitly. In CrOS, we won't turn it off, but most distros will want to as it's too hard to keep a handle on compilers and various settings users leverage. BUG=chromium:466499 TEST=precq still passes BRANCH=None Change-Id: I11bf03acefa3fd624dd4c5688dd18e3a3c87647d Reviewed-on: https://chromium-review.googlesource.com/259521 Reviewed-by: Randall Spangler <rspangler@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> Commit-Queue: Mike Frysinger <vapier@chromium.org>
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a9abdbbc..5645a8cd 100644
--- a/Makefile
+++ b/Makefile
@@ -120,9 +120,10 @@ endif
#
# Flag ordering: arch, then -f, then -m, then -W
DEBUG_FLAGS := $(if ${DEBUG},-g -O0,-Os)
+WERROR := -Werror
COMMON_FLAGS := -nostdinc -pipe \
-ffreestanding -fno-builtin -fno-stack-protector \
- -Werror -Wall -Wstrict-prototypes ${DEBUG_FLAGS}
+ ${WERROR} -Wall -Wstrict-prototypes ${DEBUG_FLAGS}
# Note: FIRMWARE_ARCH is defined by the Chromium OS ebuild.
ifeq (${FIRMWARE_ARCH}, arm)