diff options
author | Andreas Gampe <agampe@google.com> | 2014-11-25 19:58:33 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-25 19:58:33 +0000 |
commit | 63ad509f81adf34a2322498355cf1c3337be3e01 (patch) | |
tree | b77c2ded580f66a21105c9a8c56fc369d590b118 | |
parent | 421e20aaf299384abe73c79113e75620064a2c95 (diff) | |
parent | b85bc28b290a7186560a94cfbaafef09e4aafa93 (diff) | |
download | android_external_elfutils-63ad509f81adf34a2322498355cf1c3337be3e01.tar.gz android_external_elfutils-63ad509f81adf34a2322498355cf1c3337be3e01.tar.bz2 android_external_elfutils-63ad509f81adf34a2322498355cf1c3337be3e01.zip |
am b85bc28b: Merge "Elfutils: Don\'t warn on seemingly unused variable"
* commit 'b85bc28b290a7186560a94cfbaafef09e4aafa93':
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) |