Skip to content

Commit c50775a

Browse files
committed
COMP: Fix -Wshadow warnings on local samplenr variable
Fixed GCC/ubuntu "warning: declaration of 'samplenr' shadows a previous local [-Wshadow]", by moving one local `samplenr` variable beyond the other.
1 parent 2023b89 commit c50775a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Common/itkComputeJacobianTerms.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ ComputeJacobianTerms<TFixedImage, TTransform>::Compute(double & TrC, double & Tr
7171
/** Get scales vector */
7272
const ScalesType & scales = this->m_Scales;
7373

74-
unsigned int samplenr = 0;
75-
7674
/** Variables for nonzerojacobian indices and the Jacobian. */
7775
const NumberOfParametersType sizejacind = this->m_Transform->GetNumberOfNonZeroJacobianIndices();
7876
JacobianType jacj(outdim, sizejacind);
@@ -225,6 +223,8 @@ ComputeJacobianTerms<TFixedImage, TTransform>::Compute(double & TrC, double & Tr
225223
/** Initialize band matrix. */
226224
CovarianceMatrixType bandcov(numberOfParameters, bandcovsize, 0.0);
227225

226+
unsigned int samplenr = 0;
227+
228228
/**
229229
* TERM 1
230230
*

0 commit comments

Comments
 (0)