Skip to content

Commit

Permalink
Remove variable that was write-only. Some compilers fail with "variab…
Browse files Browse the repository at this point in the history
…le index set but not used (-Wunused-but-set-variable)" (#23912)
  • Loading branch information
andy31415 authored and pull[bot] committed Jun 30, 2023
1 parent 6299cc4 commit 1224640
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/app/tests/TestClusterStateCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ void DataSeriesGenerator::Generate(ForwardedDataCallbackValidator & dataCallback
StatusIB status;
callback->OnReportBegin();

uint8_t index = 0;
for (auto & instruction : mInstructionList)
{
ConcreteDataAttributePath path(instruction.mEndpointId, Clusters::UnitTesting::Id, 0);
Expand Down Expand Up @@ -266,8 +265,6 @@ void DataSeriesGenerator::Generate(ForwardedDataCallbackValidator & dataCallback
dataCallbackValidator.SetExpectation();
callback->OnAttributeData(path, nullptr, status);
}

index++;
}

callback->OnReportEnd();
Expand Down

0 comments on commit 1224640

Please sign in to comment.