Fix clang build.
Since this is an upstream project, just disable the warning for now.
It doesn't cause any harm, it's just useless code.
Change-Id: Icaec05aa4b87fa742405710058e1abf9c1e7ee50
diff --git a/Android.mk b/Android.mk
index 1ee3230..108451c 100644
--- a/Android.mk
+++ b/Android.mk
@@ -13,6 +13,7 @@
# Clang complains about configure.c's comparing array with null.
LOCAL_CFLAGS += -Wno-tautological-pointer-compare
+LOCAL_CLANG_CFLAGS := -Wno-error=duplicate-decl-specifier
LOCAL_SHARED_LIBRARIES := libc libcutils libnetutils
LOCAL_MODULE = dhcpcd
include $(BUILD_EXECUTABLE)
@@ -57,5 +58,6 @@
LOCAL_MODULE := dhcpcd_test
LOCAL_CFLAGS := -Wall -Werror -Wunused-parameter
LOCAL_SRC_FILES := dhcpcd_test.cpp dhcp.c common.c
+LOCAL_CLANG_CFLAGS := -Wno-error=duplicate-decl-specifier
LOCAL_MODULE_TAGS := eng tests
include $(BUILD_NATIVE_TEST)