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

@@ -21,7 +21,7 @@ Constant::Constant(double val) : Variable(val)
{
}
Symsptr MbD::Constant::differentiateWRT(Symsptr var)
Symsptr MbD::Constant::differentiateWRT(Symsptr)
{
return sptrConstant(0.0);
}
@@ -37,7 +37,7 @@ Symsptr MbD::Constant::integrateWRT(Symsptr var)
return std::make_shared<Polynomial>(var, coeffs);
}
Symsptr MbD::Constant::expandUntil(Symsptr sptr, std::shared_ptr<std::unordered_set<Symsptr>> set)
Symsptr MbD::Constant::expandUntil(Symsptr sptr, std::shared_ptr<std::unordered_set<Symsptr>>)
{
return sptr;
}
@@ -62,7 +62,7 @@ bool MbD::Constant::isOne()
return value == 1.0;
}
void MbD::Constant::createMbD(std::shared_ptr<System> mbdSys, std::shared_ptr<Units> mbdUnits)
void MbD::Constant::createMbD(std::shared_ptr<System>, std::shared_ptr<Units>)
{
return;
}
@@ -72,7 +72,7 @@ double MbD::Constant::getValue()
return value;
}
double MbD::Constant::getValue(double arg)
double MbD::Constant::getValue(double)
{
return value;
}