Merge "Fix -Wunused-variable compiler warning" into main

This commit is contained in:
Treehugger Robot 2023-12-06 06:17:34 +00:00 committed by Gerrit Code Review
commit e5524c0669

View file

@ -354,7 +354,7 @@ TEST_F(ParseTest, OptimizedFlashSuperPatternMatchTest) {
const std::vector<std::unique_ptr<Task>>& 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()) {