Merge changes Ie90f7f32,Ie1328b18

* changes:
  Fix unused argument error on darwin
  Remove libbacktrace dependency on libcutils
This commit is contained in:
Colin Cross 2015-04-30 23:54:15 +00:00 committed by Gerrit Code Review
commit b7a15500c2
2 changed files with 2 additions and 10 deletions

View File

@ -51,18 +51,10 @@ libbacktrace_src_files := \
UnwindMap.cpp \
UnwindPtrace.cpp \
libbacktrace_shared_libraries_target := \
libcutils \
libbacktrace_shared_libraries := \
libbase \
libunwind \
libbacktrace_shared_libraries_host := \
liblog \
libbacktrace_static_libraries_host := \
libcutils \
libunwind \
libbacktrace_ldlibs_host := \
-lpthread \

View File

@ -135,7 +135,7 @@ bool BacktraceMap::Build() {
#if defined(__APPLE__)
// Corkscrew and libunwind don't compile on the mac, so create a generic
// map object.
BacktraceMap* BacktraceMap::Create(pid_t pid, bool uncached) {
BacktraceMap* BacktraceMap::Create(pid_t pid, bool /*uncached*/) {
BacktraceMap* map = new BacktraceMap(pid);
if (!map->Build()) {
delete map;