Skip to content

Commit

Permalink
COMP: Suppress unused variable warning when not debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmjohnson committed Nov 26, 2024
1 parent e9f7412 commit 4ef72c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Modules/Registration/FEM/include/itkFEMRegistrationFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ FEMRegistrationFilter<TMovingImage, TFixedImage, TFemObject>::ApplyLoads(ImageSi

Element::VectorType coord;

bool EdgeFound;
unsigned int nodect = 0;
bool EdgeFound;
itkDebugStatement(unsigned int nodect = 0);
for (int i = 0; i < numNodes; ++i)
{
if (EdgeCounter >= ImageDimension)
Expand Down Expand Up @@ -493,7 +493,7 @@ FEMRegistrationFilter<TMovingImage, TFixedImage, TFemObject>::ApplyLoads(ImageSi
}
} // end elt loop
}
++nodect;
itkDebugStatement(++nodect);
itkDebugMacro(" Node: " << nodect);
}
}
Expand Down Expand Up @@ -896,7 +896,7 @@ FEMRegistrationFilter<TMovingImage, TFixedImage, TFemObject>::EnforceDiffeomorph
FieldIterator totalFieldIter(m_TotalField, m_TotalField->GetLargestPossibleRegion());
totalFieldIter.GoToBegin();
unsigned int jj;
float pathsteplength = 0;
itkDebugStatement(float pathsteplength = 0);
while (!totalFieldIter.IsAtEnd())
{
index = totalFieldIter.GetIndex();
Expand All @@ -917,7 +917,7 @@ FEMRegistrationFilter<TMovingImage, TFixedImage, TFemObject>::EnforceDiffeomorph
interped[jj] = interpolatedValue[jj];
temp += interped[jj] * interped[jj];
}
pathsteplength += std::sqrt(temp);
itkDebugStatement(pathsteplength += std::sqrt(temp));
m_TotalField->SetPixel(index, m_TotalField->GetPixel(index) + interped);
++totalFieldIter;
}
Expand Down

0 comments on commit 4ef72c3

Please sign in to comment.