diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-10-15 03:29:51 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-10-15 03:29:51 +0000 |
commit | ca553b107b0747f7265edd2fd1295d83a8b0298d (patch) | |
tree | c2f442b2393c806d49012ebc344ede2275f3ebb2 | |
parent | 9267899092d567335efd921ac691f6e853fee0fe (diff) | |
parent | 9daf3ca0930745604c1a0b790223269c48877b4b (diff) | |
download | bison-ca553b107b0747f7265edd2fd1295d83a8b0298d.tar.gz |
Merge "Use -Werror in external/bison" am: 32b7068f2f
am: 9daf3ca093
Change-Id: I959f818190a2e79558e8364423ce9c3bc388934b
-rw-r--r-- | Android.mk | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -14,6 +14,13 @@ LOCAL_PATH:= $(call my-dir) +ifeq ($(HOST_OS),darwin) +# No -Werror for darwin yet. Need to fix/suppress more warnings. +BISON_WERROR := +else +BISON_WERROR := -Werror +endif + ########################################### include $(CLEAR_VARS) @@ -132,6 +139,8 @@ LOCAL_SRC_FILES += \ lib/fcntl.c endif +LOCAL_CFLAGS := $(BISON_WERROR) -Wall -Wno-sign-compare + include $(BUILD_HOST_STATIC_LIBRARY) ########################################### @@ -145,6 +154,13 @@ LOCAL_C_INCLUDES := \ LOCAL_CFLAGS := -DPKGDATADIR=\"$(LOCAL_PATH)/data\" +LOCAL_CFLAGS := -DPKGDATADIR=\"$(LOCAL_PATH)/data\" \ + -Wall \ + $(BISON_WERROR) \ + -Wno-sign-compare \ + -Wno-sometimes-uninitialized \ + -Wno-unused-parameter \ + LOCAL_STATIC_LIBRARIES := libbison LOCAL_SRC_FILES := \ @@ -186,3 +202,5 @@ LOCAL_SRC_FILES := \ src/uniqstr.c include $(BUILD_HOST_EXECUTABLE) + +BISON_WERROR := |