diff options
author | Andreas Gampe <agampe@google.com> | 2014-11-25 18:13:42 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-11-25 18:13:42 +0000 |
commit | b85bc28b290a7186560a94cfbaafef09e4aafa93 (patch) | |
tree | b77c2ded580f66a21105c9a8c56fc369d590b118 | |
parent | bbe96fe08bb58b49fd058ca92da510e1948aaf2e (diff) | |
parent | 5639e207672f5eeb566b956d8e822f76b324071a (diff) | |
download | android_external_elfutils-b85bc28b290a7186560a94cfbaafef09e4aafa93.tar.gz android_external_elfutils-b85bc28b290a7186560a94cfbaafef09e4aafa93.tar.bz2 android_external_elfutils-b85bc28b290a7186560a94cfbaafef09e4aafa93.zip |
Merge "Elfutils: Don't warn on seemingly unused variable"
-rwxr-xr-x | 0.153/libdwfl/Android.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/0.153/libdwfl/Android.mk b/0.153/libdwfl/Android.mk index 84e789c4..f4172476 100755 --- a/0.153/libdwfl/Android.mk +++ b/0.153/libdwfl/Android.mk @@ -71,6 +71,10 @@ LOCAL_CFLAGS += -Wno-pointer-arith # to fix machine-dependent issues LOCAL_CFLAGS += -include $(LOCAL_PATH)/../host-$(HOST_OS)-fixup/AndroidFixup.h +# Asserts are not compiled, so some debug variables appear unused. Rather than +# fix, we prefer to turn off the warning locally. +LOCAL_CFLAGS += -Wno-unused-but-set-variable + LOCAL_MODULE:= libdwfl include $(BUILD_HOST_STATIC_LIBRARY) @@ -105,6 +109,9 @@ LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -Werror # to suppress the "pointer of type ‘void *’ used in arithmetic" warning LOCAL_CFLAGS += -Wno-pointer-arith +# See above. +LOCAL_CFLAGS += -Wno-unused-but-set-variable + LOCAL_MODULE:= libdwfl include $(BUILD_STATIC_LIBRARY) |