diff options
author | Dan Albert <danalbert@google.com> | 2015-02-19 18:11:59 -0800 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-03-09 16:20:03 -0700 |
commit | 555fad11b317c3e35fbaf2d7e983d3e34172bd3e (patch) | |
tree | 16931d8f2574cc22d90136e202f00e80fe608aa7 | |
parent | 45f6da643b723e29aa94147adc2f143588e1d919 (diff) | |
download | dhcpcd-555fad11b317c3e35fbaf2d7e983d3e34172bd3e.tar.gz |
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
(cherry picked from commit 22bd6386e28c9bd3fd15d896bc224cd989dd871b)
-rw-r--r-- | Android.mk | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -13,6 +13,7 @@ LOCAL_SRC_FILES := arp.c bind.c common.c control.c dhcp.c dhcpcd.c duid.c \ # 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 @@ include $(CLEAR_VARS) 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) |