From 90f6cb4b2ca7cae0b3546027b39a31b3478623be Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Wed, 6 Dec 2023 14:07:36 +0900 Subject: [PATCH] Fix -Wunused-variable compiler warning Test: presubmit Change-Id: Ia6d0a735c94c7be39994fb9c8ae4d3b65d6f4301 --- fastboot/task_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastboot/task_test.cpp b/fastboot/task_test.cpp index 9cde1a81e..81154c68e 100644 --- a/fastboot/task_test.cpp +++ b/fastboot/task_test.cpp @@ -354,7 +354,7 @@ TEST_F(ParseTest, OptimizedFlashSuperPatternMatchTest) { const std::vector>& tasks) { bool contains_optimized_task = false; for (auto& task : tasks) { - if (auto optimized_task = task->AsOptimizedFlashSuperTask()) { + if (task->AsOptimizedFlashSuperTask()) { contains_optimized_task = true; } if (auto flash_task = task->AsFlashTask()) {