aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-10-11 14:40:47 -0700
committerChih-Hung Hsieh <chh@google.com>2017-10-12 12:02:28 -0700
commit1392bc802c7925b87a8c27adcc371a390845aaeb (patch)
treef1461201d030f601733d7b727784456ac0214b93
parent936bcaa501354e5ea008aa3088fd3852b49e418f (diff)
downloadvboot_reference-1392bc802c7925b87a8c27adcc371a390845aaeb.tar.gz
Use -Werror in external/vboot_reference
* Suppress existing warnings. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I7954cba34e05096ebcb7fec6529132bb7b96f61b
-rw-r--r--Android.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index d45f930c..e7518933 100644
--- a/Android.mk
+++ b/Android.mk
@@ -4,11 +4,23 @@
# Minimal makefile capable of compiling futility to sign images
+libvboot_common_warning_flags := \
+ -Wall -Werror \
+ -Wno-address-of-packed-member \
+ -Wno-ignored-qualifiers \
+ -Wno-macro-redefined \
+ -Wno-pointer-arith \
+ -Wno-sign-compare \
+ -Wno-typedef-redefinition \
+ -Wno-unused-parameter \
+
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libvboot_util-host
+LOCAL_CFLAGS := $(libvboot_common_warning_flags)
+
ifeq ($(HOST_OS),darwin)
LOCAL_CFLAGS += -DHAVE_MACOS -DO_LARGEFILE=0
endif
@@ -118,6 +130,8 @@ LOCAL_IS_HOST_MODULE := true
LOCAL_MODULE_CLASS := EXECUTABLES
generated_sources := $(call local-generated-sources-dir)
+LOCAL_CFLAGS := $(libvboot_common_warning_flags)
+
ifeq ($(HOST_OS),darwin)
LOCAL_CFLAGS += -DHAVE_MACOS
endif
@@ -177,3 +191,4 @@ LOCAL_STATIC_LIBRARIES := libvboot_util-host
LOCAL_SHARED_LIBRARIES := libcrypto
include $(BUILD_HOST_EXECUTABLE)
+libvboot_common_warning_flags :=