From 3b169d792df8bcdd9ddbc645ffcfdb0636e585af Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Tue, 31 Mar 2015 00:49:08 +0200 Subject: [PATCH] Suppress unused variable warning --- Eigen/src/SVD/BDCSVD.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Eigen/src/SVD/BDCSVD.h b/Eigen/src/SVD/BDCSVD.h index ca7bc30fc..a69e4cf96 100644 --- a/Eigen/src/SVD/BDCSVD.h +++ b/Eigen/src/SVD/BDCSVD.h @@ -786,9 +786,9 @@ void BDCSVD::computeSingVals(const ArrayXr& col0, const ArrayXr& dia } RealScalar fLeft = secularEq(leftShifted, col0, diag, perm, diagShifted, shift); - RealScalar fRight = secularEq(rightShifted, col0, diag, perm, diagShifted, shift); #ifdef EIGEN_BDCSVD_DEBUG_VERBOSE + RealScalar fRight = secularEq(rightShifted, col0, diag, perm, diagShifted, shift); if(!(fLeft * fRight<0)) std::cout << k << " : " << fLeft << " * " << fRight << " == " << fLeft * fRight << " ; " << left << " - " << right << " -> " << leftShifted << " " << rightShifted << " shift=" << shift << "\n"; #endif @@ -801,7 +801,6 @@ void BDCSVD::computeSingVals(const ArrayXr& col0, const ArrayXr& dia if (fLeft * fMid < 0) { rightShifted = midShifted; - fRight = fMid; } else {