From 7aa88748f6ec4e53333d1a15747bc44826ccc410 Mon Sep 17 00:00:00 2001 From: Tianjie Xu Date: Wed, 28 Sep 2016 11:42:17 -0700 Subject: Turn on -Werror for recovery Also remove the 0xff comparison when validating the bootloader message fields. As the fields won't be erased to 0xff after we remove the MTD support. Bug: 28202046 Test: The recovery folder compiles for aosp_x86-eng Change-Id: Ibb30ea1b2b28676fb08c7e92a1e5f7b6ef3247ab --- edify/Android.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'edify/Android.mk') diff --git a/edify/Android.mk b/edify/Android.mk index 71cf7652a..b397045cf 100644 --- a/edify/Android.mk +++ b/edify/Android.mk @@ -16,6 +16,7 @@ LOCAL_SRC_FILES := \ $(edify_src_files) \ main.cpp +LOCAL_CFLAGS := -Werror LOCAL_CPPFLAGS := -g -O0 LOCAL_MODULE := edify LOCAL_YACCFLAGS := -v @@ -34,6 +35,7 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES := $(edify_src_files) +LOCAL_CFLAGS := -Werror LOCAL_CPPFLAGS := -Wno-unused-parameter LOCAL_CPPFLAGS += -Wno-deprecated-register LOCAL_MODULE := libedify -- cgit v1.2.3