aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao2016-10-13 14:46:38 -0500
committerTao Bao2017-10-11 18:56:12 -0500
commit99f0d9e52bdbe314d77300f883d66e4470d4a5ee (patch)
tree1f2d542a9d43d56366dd20dedd607c678adb7bc7 /recovery.cpp
parent46d8a3b604413c1ac367c0f4526e85fc2786952e (diff)
downloadplatform-bootable-recovery-99f0d9e52bdbe314d77300f883d66e4470d4a5ee.tar.gz
platform-bootable-recovery-99f0d9e52bdbe314d77300f883d66e4470d4a5ee.tar.xz
platform-bootable-recovery-99f0d9e52bdbe314d77300f883d66e4470d4a5ee.zip
Drop -Wno-unused-parameter.
The only one left is libedify. Will handle that in a separate CL. Test: mmma bootable/recovery Change-Id: I732a5f85229da90fd767bee2e46c5c95f529c396
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 243ee4af..a8991633 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1214,9 +1214,8 @@ static Device::BuiltinAction prompt_and_wait(Device* device, int status) {
1214 } 1214 }
1215} 1215}
1216 1216
1217static void 1217static void print_property(const char* key, const char* name, void* /* cookie */) {
1218print_property(const char *key, const char *name, void *cookie) { 1218 printf("%s=%s\n", key, name);
1219 printf("%s=%s\n", key, name);
1220} 1219}
1221 1220
1222static std::string load_locale_from_cache() { 1221static std::string load_locale_from_cache() {
@@ -1250,14 +1249,14 @@ void ui_print(const char* format, ...) {
1250 1249
1251static constexpr char log_characters[] = "VDIWEF"; 1250static constexpr char log_characters[] = "VDIWEF";
1252 1251
1253void UiLogger(android::base::LogId id, android::base::LogSeverity severity, 1252void UiLogger(android::base::LogId /* id */, android::base::LogSeverity severity,
1254 const char* tag, const char* file, unsigned int line, 1253 const char* /* tag */, const char* /* file */, unsigned int /* line */,
1255 const char* message) { 1254 const char* message) {
1256 if (severity >= android::base::ERROR && ui != nullptr) { 1255 if (severity >= android::base::ERROR && ui != nullptr) {
1257 ui->Print("E:%s\n", message); 1256 ui->Print("E:%s\n", message);
1258 } else { 1257 } else {
1259 fprintf(stdout, "%c:%s\n", log_characters[severity], message); 1258 fprintf(stdout, "%c:%s\n", log_characters[severity], message);
1260 } 1259 }
1261} 1260}
1262 1261
1263static bool is_battery_ok() { 1262static bool is_battery_ok() {