From ffed7d7b1eb6b771658f452d218bc6fd9d74d63b Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Tue, 10 Oct 2017 15:40:53 -0700 Subject: Use -Werror in external/libmicrohttpd * Suppressed warnings: sign-compare, tautological-constant-out-of-range-compare, unused-parameter, unused-variable. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I59aec03654591e2fa6fd9eaed4fd855e440e23b2 --- Android.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index 10e7f6f4..84ebd2db 100644 --- a/Android.mk +++ b/Android.mk @@ -18,7 +18,13 @@ LOCAL_PATH := $(my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libmicrohttpd -LOCAL_CFLAGS := -Wno-sign-compare -Wno-unused-parameter +LOCAL_CFLAGS := \ + -Wall -Werror \ + -Wno-sign-compare \ + -Wno-tautological-constant-out-of-range-compare \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/src/include LOCAL_C_INCLUDES := \ -- cgit v1.2.3