Skip to content

Commit

Permalink
COMP: Suppress warning about unused variable
Browse files Browse the repository at this point in the history
The variable sum was set, but never used.
  • Loading branch information
hjmjohnson authored and SimonRit committed Nov 26, 2024
1 parent 94d070b commit 1de9d77
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/rtkscatterglarefiltertest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ createInputImage(const std::vector<float> & coef)
itk::ImageRegionIteratorWithIndex<ImageType> itK(inputI, inputI->GetLargestPossibleRegion());
itK.GoToBegin();
ImageType::IndexType idx;
float sum = 0.0f;
while (!itK.IsAtEnd())
{
idx = itK.GetIndex();
Expand All @@ -100,10 +99,8 @@ createInputImage(const std::vector<float> & coef)
}
g = spikeValue * g; // The image is a spike at the central pixel convolved with the scatter PSF
itK.Set(g);
sum += g;
++itK;
}

return inputI;
}

Expand Down

0 comments on commit 1de9d77

Please sign in to comment.