Fix unused parameter warning for mips builds

libbacktrace_offline was inheriting -Wno-unused-parameter from llvm's
makefiles.  Fix an unused parameter warning when compiling for an
unsupported architecture, and return false since *value wasn't
written.

Test: lunch aosp_mips-eng && mma -j
Change-Id: I7df990f01e1025ca17ec3717107df56d2349f3cb
This commit is contained in:
Colin Cross 2016-12-15 12:55:03 -08:00
parent 049376f14d
commit 06d314917f
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,7 @@ extern "C" {
#include <vector>
#include <android-base/file.h>
#include <android-base/macros.h>
#include <backtrace/Backtrace.h>
#include <backtrace/BacktraceMap.h>
#include <ziparchive/zip_archive.h>
@ -534,6 +535,10 @@ bool BacktraceOffline::ReadReg(size_t reg, uint64_t* value) {
default:
result = false;
}
#else
UNUSED(reg);
UNUSED(value);
result = false;
#endif
return result;
}