diff options
author | Elliott Hughes <enh@google.com> | 2016-05-13 10:03:49 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2016-05-13 10:03:49 -0700 |
commit | 63b461288dd4ea9d6d1b3f35a7b777593a134f46 (patch) | |
tree | 4aa0d28432a478cfbcb65797ae298adf1ee74edb | |
parent | 01a45a5883c71a4acbd36262b5f492a3d0d42d50 (diff) | |
download | dhcpcd-63b461288dd4ea9d6d1b3f35a7b777593a134f46.tar.gz |
Make dhcpd admit to using BSD extensions.
Change-Id: I7f1cda4d2574468e550e797ebfbb6885b7f8db33
-rw-r--r-- | Android.mk | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -5,15 +5,17 @@ etc_dir := $(TARGET_OUT)/etc/dhcpcd hooks_dir := dhcpcd-hooks hooks_target := $(etc_dir)/$(hooks_dir) +dhcpd_cflags := -Wno-error=duplicate-decl-specifier -D_BSD_SOURCE +# Clang complains about configure.c's comparing array with null. +dhcpd_cflags += -Wno-tautological-pointer-compare + include $(CLEAR_VARS) LOCAL_SRC_FILES := arp.c bind.c common.c control.c dhcp.c dhcpcd.c duid.c \ eloop.c if-options.c if-pref.c ipv4ll.c net.c signals.c configure.c \ if-linux.c if-linux-wireless.c lpf.c \ platform-linux.c compat/closefrom.c ifaddrs.c ipv6rs.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_CFLAGS := $(dhcpd_cflags) LOCAL_SHARED_LIBRARIES := libc libcutils libnetutils LOCAL_MODULE = dhcpcd include $(BUILD_EXECUTABLE) @@ -58,6 +60,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_CFLAGS := $(dhcpd_cflags) LOCAL_MODULE_TAGS := eng tests include $(BUILD_NATIVE_TEST) |