summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-11-24 21:04:13 -0800
committerAndreas Gampe <agampe@google.com>2014-11-25 10:10:52 -0800
commit5639e207672f5eeb566b956d8e822f76b324071a (patch)
treeb77c2ded580f66a21105c9a8c56fc369d590b118
parentbbe96fe08bb58b49fd058ca92da510e1948aaf2e (diff)
downloadandroid_external_elfutils-5639e207672f5eeb566b956d8e822f76b324071a.tar.gz
android_external_elfutils-5639e207672f5eeb566b956d8e822f76b324071a.tar.bz2
android_external_elfutils-5639e207672f5eeb566b956d8e822f76b324071a.zip
Elfutils: Don't warn on seemingly unused variable
When asserts are nops, the compiler thinks the variable is unused and will issue a terminal warning. Locally turning off the warning is preferred as it eases upgrading the project. Change-Id: I2a910b02bc2ebd2ec299fee0426aea1390eaf9d4
-rwxr-xr-x0.153/libdwfl/Android.mk7
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)