aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-10-10 11:49:42 -0700
committerChih-Hung Hsieh <chh@google.com>2017-10-10 12:15:10 -0700
commita6375062495441ad90901a1fbb87dd5f07f61ae2 (patch)
tree12e46332e3cadbc48c101a80efe86b75ab315d56
parent9f1b2827cb88c58a80c470a4bddb2485677ec57f (diff)
downloadc-ares-a6375062495441ad90901a1fbb87dd5f07f61ae2.tar.gz
Use -Werror in external/c-ares
* Suppress warnings of unused variables/functions. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Iadaece59a919d9b17de97ab9b38a8ef40c563da4
-rw-r--r--Android.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index 6677382..13330c1 100644
--- a/Android.mk
+++ b/Android.mk
@@ -18,7 +18,10 @@ include $(LOCAL_PATH)/Makefile.inc
include $(CLEAR_VARS)
LOCAL_MODULE := libcares
-LOCAL_CFLAGS += -DHAVE_CONFIG_H
+LOCAL_CFLAGS += -DHAVE_CONFIG_H \
+ -Wall -Werror \
+ -Wno-unused-function \
+ -Wno-unused-variable
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
LOCAL_SRC_FILES := $(CSOURCES)
include $(BUILD_SHARED_LIBRARY)