modify code to suppress or fix warnings in gcc and clang (#41)

* first fix to start branch PR

* explicit conversion from sizet to int

* Array.h and DiagonalMatrix.h

* many sizet to int conversions

* removed some unused variables and added expl overrides

* removed many unused parameters

* more typing

* even more

* last of the easy changes
This commit is contained in:
John Dupuy
2023-12-08 11:00:00 -06:00
committed by GitHub
parent 8eb7d5d59c
commit 87ed8700e2
85 changed files with 349 additions and 320 deletions

View File

@@ -39,7 +39,9 @@ double MbD::StableBackwardDifference::pvdotpv()
return sum;
}
FColDsptr MbD::StableBackwardDifference::derivativepresentpastpresentDerivativepastDerivative(int n, FColDsptr y, std::shared_ptr<std::vector<FColDsptr>> ypast, FColDsptr ydot, std::shared_ptr<std::vector<FColDsptr>> ydotpast)
FColDsptr MbD::StableBackwardDifference::derivativepresentpastpresentDerivativepastDerivative(
int, FColDsptr, std::shared_ptr<std::vector<FColDsptr>>, FColDsptr,
std::shared_ptr<std::vector<FColDsptr>>)
{
assert(false);
return FColDsptr();
@@ -93,7 +95,8 @@ FColDsptr MbD::StableBackwardDifference::derivativepresentpast(int deriv, FColDs
return std::static_pointer_cast<FullColumn<double>>(answer);
}
else {
return std::make_shared<FullColumn<double>>(y->size(), 0.0);
auto ySize = (int)y->size();
return std::make_shared<FullColumn<double>>(ySize, 0.0);
}
}
}