From 16dde875950d6806cc770cdbee4d3ff456ed6f02 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 15 May 2014 14:12:54 -0700 Subject: [PATCH] Do not tolerate compilation warnings when building libpayload Make sure the build breaks in case of warnings. BUG=none TEST=run the following command with the previous patch removed and then restored: $ for b in rambi storm nyan_big; do cros_workon-$b start libpayload emerge-$b libpayload done all builds succeed with the restored patch and fail when a compilation warning is thrown. Change-Id: I9bdcd8938f59913e4ba86df5e4921b3f821ef920 Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/200110 Reviewed-by: Aaron Durbin --- payloads/libpayload/Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payloads/libpayload/Makefile.inc b/payloads/libpayload/Makefile.inc index 4a8bc79c41..45376d29e5 100644 --- a/payloads/libpayload/Makefile.inc +++ b/payloads/libpayload/Makefile.inc @@ -57,7 +57,7 @@ CFLAGS = $(EXTRA_CFLAGS) $(INCLUDES) -Os -pipe -nostdinc -ggdb3 CFLAGS += -nostdlib -fno-builtin -ffreestanding -fomit-frame-pointer CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs -CFLAGS += -Wstrict-aliasing -Wshadow +CFLAGS += -Wstrict-aliasing -Wshadow -Werror $(obj)/libpayload-config.h: $(KCONFIG_AUTOHEADER) cmp $@ $< 2>/dev/null || cp $< $@