From b8bbc434895698e0846619ccf74b7cc6d66d22bb Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Tue, 5 Dec 2023 18:35:33 +0900 Subject: [PATCH] Fix -Wunused-variable compiler warning Test: presubmit Change-Id: I63b1625decd3dcdb9f405c8825203e04810c282c --- fastboot/task.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastboot/task.cpp b/fastboot/task.cpp index 25c5a6e6b..0947ff90f 100644 --- a/fastboot/task.cpp +++ b/fastboot/task.cpp @@ -224,7 +224,7 @@ std::unique_ptr OptimizedFlashSuperTask::Initialize( auto remove_if_callback = [&](const auto& task) -> bool { if (auto flash_task = task->AsFlashTask()) { return helper->WillFlash(flash_task->GetPartitionAndSlot()); - } else if (auto update_super_task = task->AsUpdateSuperTask()) { + } else if (task->AsUpdateSuperTask()) { return true; } else if (auto reboot_task = task->AsRebootTask()) { if (reboot_task->GetTarget() == "fastboot") {