diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-10-16 19:55:44 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-10-16 19:55:44 +0000 |
commit | 495b0f7ab19144eafb1640b374536d1315d3f176 (patch) | |
tree | f1461201d030f601733d7b727784456ac0214b93 | |
parent | 80f51beb5638ec82d248dc4eaa5e71abb575050b (diff) | |
parent | 2d69674b38d926e7d3f2c8c14d940f212b9d0f13 (diff) | |
download | vboot_reference-495b0f7ab19144eafb1640b374536d1315d3f176.tar.gz |
Use -Werror in external/vboot_reference am: 1392bc802c am: c54978e619 am: 3f9229c788
am: 2d69674b38
Change-Id: I9041f588e30f547a65dcce89a72631e074bfa737
-rw-r--r-- | Android.mk | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 := |