Merge "Use -Werror in external/mksh" am: 9da7e0f318 am: b6be55d35e

am: 95c8f2abd7

Change-Id: Ie5178680bfee7a48257f365416f802e2b1566e32
This commit is contained in:
Chih-hung Hsieh 2017-10-12 20:52:35 +00:00 committed by android-build-merger
commit 5a8bf259a2

View file

@ -33,8 +33,12 @@ MKSH_SRC_FILES := \
MKSH_INCLUDES := $(LOCAL_PATH)/src
# Compiler flags...
MKSH_CFLAGS += \
MKSH_WARNING_CFLAGS := \
-Wall -Werror \
-Wno-deprecated-declarations \
MKSH_CFLAGS += \
$(MKSH_WARNING_CFLAGS) \
-fno-asynchronous-unwind-tables \
-fno-strict-aliasing \
-fstack-protector -fwrapv \
@ -150,6 +154,7 @@ LOCAL_MODULE := sh_vendor
LOCAL_MODULE_STEM := sh
LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
LOCAL_CFLAGS := $(MKSH_WARNING_CFLAGS)
# mksh source files
LOCAL_SRC_FILES := $(MKSH_SRC_FILES)
@ -169,4 +174,5 @@ include $(BUILD_EXECUTABLE)
MKSH_SRC_FILES:=
MKSH_CFLAGS:=
MKSH_WARNING_CFLAGS:=
MKSH_INCLUDES:=