Remove warnings from this lib, should look at fixing them.
Change-Id: I665570537bc79e8a358dbb36475d87e7f95fc5ae
diff --git a/Android.mk b/Android.mk
index 08bf11f..5867e6b 100644
--- a/Android.mk
+++ b/Android.mk
@@ -51,6 +51,14 @@
common_C_INCLUDES += \
$(LOCAL_PATH)/include
+# Turn off warnings to prevent log message spam
+DISABLED_WARNING_FLAGS := \
+ -Wno-array-bounds \
+ -Wno-enum-compare \
+ -Wno-format \
+ -Wno-pointer-sign \
+ -Wno-sign-compare
+
# For the device
# =====================================================
@@ -60,6 +68,7 @@
LOCAL_C_INCLUDES += $(common_C_INCLUDES) external/icu4c/common
LOCAL_SHARED_LIBRARIES += $(common_SHARED_LIBRARIES)
LOCAL_CFLAGS += -fvisibility=hidden
+LOCAL_CFLAGS += $(DISABLED_WARNING_FLAGS)
LOCAL_MODULE:= libxml2
@@ -72,6 +81,7 @@
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(common_SRC_FILES)
LOCAL_C_INCLUDES += $(common_C_INCLUDES) external/icu4c/common
+LOCAL_CFLAGS += $(DISABLED_WARNING_FLAGS)
LOCAL_SHARED_LIBRARIES += $(common_SHARED_LIBRARIES)
LOCAL_MODULE:= libxml2
include $(BUILD_HOST_STATIC_LIBRARY)