summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2016-12-13 01:45:45 -0800
committerStephen Hines <srhines@google.com>2016-12-13 02:55:47 -0800
commit5437b1d29c19e09afe9b088e9f4399e937c691c7 (patch)
tree634b46c09f12fd2861f8a4006668611afb103397
parentc2f9edd16daf2752bbec4949f513df2e42fdc5c3 (diff)
downloadplatform_external_android-clat-5437b1d29c19e09afe9b088e9f4399e937c691c7.tar.gz
platform_external_android-clat-5437b1d29c19e09afe9b088e9f4399e937c691c7.tar.bz2
platform_external_android-clat-5437b1d29c19e09afe9b088e9f4399e937c691c7.zip
Disable -Waddress-of-packed-member temporarily.
Bug: http://b/33566695 Taking the address of packed data members yields pointers that only have a guaranteed alignment of 1. Since this is an external/ project, we temporarily will disable this warning until a proper fix can be made in the upstream version of the project. Test: Builds successfully with updated toolchain. Change-Id: I8be14bdd5600108de227a1ec16d86caac452ec85
-rw-r--r--Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index cdb7810..8c0a43e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -4,6 +4,8 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES:=clatd.c dump.c checksum.c translate.c icmp.c ipv4.c ipv6.c config.c dns64.c logging.c getaddr.c netlink_callbacks.c netlink_msg.c setif.c mtu.c tun.c ring.c
LOCAL_CFLAGS := -Wall -Werror -Wunused-parameter
+# Bug: http://b/33566695
+LOCAL_CFLAGS += -Wno-address-of-packed-member
LOCAL_C_INCLUDES := external/libnl/include bionic/libc/dns/include
LOCAL_STATIC_LIBRARIES := libnl
LOCAL_SHARED_LIBRARIES := libcutils liblog libnetutils
@@ -30,6 +32,8 @@ include $(CLEAR_VARS)
LOCAL_MODULE := clatd_test
LOCAL_CFLAGS := -Wall -Werror -Wunused-parameter
+# Bug: http://b/33566695
+LOCAL_CFLAGS += -Wno-address-of-packed-member
LOCAL_SRC_FILES := clatd_test.cpp checksum.c translate.c icmp.c ipv4.c ipv6.c logging.c config.c tun.c
LOCAL_MODULE_TAGS := eng tests
LOCAL_SHARED_LIBRARIES := liblog libnetutils