diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-10-13 23:49:00 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-10-13 23:49:00 +0000 |
commit | 32b7068f2f26e205df7d77cf3b1e2e3cd996ebf2 (patch) | |
tree | c2f442b2393c806d49012ebc344ede2275f3ebb2 | |
parent | 8c0f110a8a4ff7b0ba25dd52a79105ed2712c59b (diff) | |
parent | 62eda2805c1b4175dc02aa588a9e81cbd22611ee (diff) | |
download | bison-32b7068f2f26e205df7d77cf3b1e2e3cd996ebf2.tar.gz |
Merge "Use -Werror in external/bison"
-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 := |