From 4698126601b9e295c5d3754040e338ce8f7082c0 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 5 Dec 2022 14:50:11 -0500 Subject: [PATCH] Remove variable that was write-only. Some compilers fail with "variable index set but not used (-Wunused-but-set-variable)" (#23912) --- src/app/tests/TestClusterStateCache.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/app/tests/TestClusterStateCache.cpp b/src/app/tests/TestClusterStateCache.cpp index d2b85fad74f5d5..172de5dd4cc798 100644 --- a/src/app/tests/TestClusterStateCache.cpp +++ b/src/app/tests/TestClusterStateCache.cpp @@ -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); @@ -266,8 +265,6 @@ void DataSeriesGenerator::Generate(ForwardedDataCallbackValidator & dataCallback dataCallbackValidator.SetExpectation(); callback->OnAttributeData(path, nullptr, status); } - - index++; } callback->OnReportEnd();