diff options
author | Stephen Hines <srhines@google.com> | 2016-12-13 01:45:45 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2016-12-13 02:55:47 -0800 |
commit | 5437b1d29c19e09afe9b088e9f4399e937c691c7 (patch) | |
tree | 634b46c09f12fd2861f8a4006668611afb103397 | |
parent | c2f9edd16daf2752bbec4949f513df2e42fdc5c3 (diff) | |
download | platform_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.mk | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |