Update to clang-16

Use runner Ubuntu 22.04 for clang-16
Remove unused code detected by clang-16
This commit is contained in:
Magne Sjaastad
2024-01-05 15:13:50 +01:00
committed by GitHub
parent 9ac518fbe0
commit ff6472c6b7
8 changed files with 30 additions and 32 deletions

View File

@@ -272,8 +272,7 @@ void RiaSCurveCalculator::initializeByFinding_q1q2( cvf::Vec3d p1, double azi1,
SolveStatus solveResultStatus = NOT_SOLVED;
int backstepLevel = 0;
int iteration = 1;
int iteration = 1;
for ( iteration = 1; iteration < maxIterations; ++iteration )
{
if ( fabs( q1Step ) > maxStepSize || fabs( q2Step ) > maxStepSize )
@@ -349,18 +348,12 @@ void RiaSCurveCalculator::initializeByFinding_q1q2( cvf::Vec3d p1, double azi1,
// if (isZeroCrossingR2)
q2Step = 0.9 * q2Step * fabs( R2_error ) / ( fabs( R2_error_new ) + fabs( R2_error ) );
++backstepLevel;
#ifdef DEBUG_OUTPUT_ON
std::cout << " Backstep needed. " << std::endl;
#endif
continue;
}
else
{
backstepLevel = 0;
}
}
#ifdef DEBUG_OUTPUT_ON