From 79a1e4ed4c87a284f82b769488ca58ca02e336bd Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Mon, 24 Jun 2024 18:23:28 -0500 Subject: [PATCH] Mark unused variables to silence compiler warnings. (#64) --- OndselSolver/ASMTAllowRotation.cpp | 1 + OndselSolver/ASMTAssembly.cpp | 1 + OndselSolver/ASMTItemIJ.cpp | 2 ++ OndselSolver/LimitIJ.cpp | 14 ++++++++++++++ OndselSolver/PosICDragLimitNewtonRaphson.cpp | 1 + 5 files changed, 19 insertions(+) diff --git a/OndselSolver/ASMTAllowRotation.cpp b/OndselSolver/ASMTAllowRotation.cpp index 37042c3..643cf84 100644 --- a/OndselSolver/ASMTAllowRotation.cpp +++ b/OndselSolver/ASMTAllowRotation.cpp @@ -57,6 +57,7 @@ std::shared_ptr MbD::ASMTAllowRotation::mbdClassNew() void MbD::ASMTAllowRotation::setMotionJoint(std::string motionJoint) { + (void) motionJoint; } void MbD::ASMTAllowRotation::storeOnLevel(std::ofstream& os, size_t level) diff --git a/OndselSolver/ASMTAssembly.cpp b/OndselSolver/ASMTAssembly.cpp index 8ef1193..360f8b0 100644 --- a/OndselSolver/ASMTAssembly.cpp +++ b/OndselSolver/ASMTAssembly.cpp @@ -1474,6 +1474,7 @@ void MbD::ASMTAssembly::compareResults(AnalysisType type) void MbD::ASMTAssembly::outputResults(AnalysisType type) { + (void) type; //ASMTSpatialContainer::outputResults(type); //for (auto& part : *parts) part->outputResults(type); //for (auto& joint : *joints) joint->outputResults(type); diff --git a/OndselSolver/ASMTItemIJ.cpp b/OndselSolver/ASMTItemIJ.cpp index 3c9e163..19ad421 100644 --- a/OndselSolver/ASMTItemIJ.cpp +++ b/OndselSolver/ASMTItemIJ.cpp @@ -161,6 +161,8 @@ void MbD::ASMTItemIJ::parseASMT(std::vector& lines) void MbD::ASMTItemIJ::createMbD(std::shared_ptr mbdSys, std::shared_ptr mbdUnits) { + (void) mbdSys; + (void) mbdUnits; //self dataSeries : OrderedCollection new. //self discontinuities : OrderedCollection new. auto mbdJt = this->mbdClassNew(); diff --git a/OndselSolver/LimitIJ.cpp b/OndselSolver/LimitIJ.cpp index a7b85bc..d6ab9d8 100644 --- a/OndselSolver/LimitIJ.cpp +++ b/OndselSolver/LimitIJ.cpp @@ -9,11 +9,13 @@ MbD::LimitIJ::LimitIJ() void MbD::LimitIJ::fillAccICIterError(FColDsptr col) { + (void) col; assert(false); } void MbD::LimitIJ::fillAccICIterJacob(SpMatDsptr mat) { + (void) mat; assert(false); } @@ -49,16 +51,19 @@ void MbD::LimitIJ::fillConstraints(std::shared_ptr>> dispConstraints) { + (void) dispConstraints; assert(false); } void MbD::LimitIJ::fillEssenConstraints(std::shared_ptr>> essenConstraints) { + (void) essenConstraints; assert(false); } void MbD::LimitIJ::fillPerpenConstraints(std::shared_ptr>> perpenConstraints) { + (void) perpenConstraints; assert(false); } @@ -78,16 +83,19 @@ void MbD::LimitIJ::fillPosICJacob(SpMatDsptr mat) void MbD::LimitIJ::fillPosKineError(FColDsptr col) { + (void) col; assert(false); } void MbD::LimitIJ::fillPosKineJacob(SpMatDsptr mat) { + (void) mat; assert(false); } void MbD::LimitIJ::fillqsuddotlam(FColDsptr col) { + (void) col; assert(false); } @@ -100,31 +108,37 @@ void MbD::LimitIJ::fillqsulam(FColDsptr col) void MbD::LimitIJ::fillqsudot(FColDsptr col) { + (void) col; assert(false); } void MbD::LimitIJ::fillqsudotWeights(DiagMatDsptr diagMat) { + (void) diagMat; assert(false); } void MbD::LimitIJ::fillVelICError(FColDsptr col) { + (void) col; assert(false); } void MbD::LimitIJ::fillVelICJacob(SpMatDsptr mat) { + (void) mat; assert(false); } void MbD::LimitIJ::setqsuddotlam(FColDsptr col) { + (void) col; assert(false); } void MbD::LimitIJ::setqsudotlam(FColDsptr col) { + (void) col; assert(false); } diff --git a/OndselSolver/PosICDragLimitNewtonRaphson.cpp b/OndselSolver/PosICDragLimitNewtonRaphson.cpp index be7fb7c..32d1208 100644 --- a/OndselSolver/PosICDragLimitNewtonRaphson.cpp +++ b/OndselSolver/PosICDragLimitNewtonRaphson.cpp @@ -31,6 +31,7 @@ void MbD::PosICDragLimitNewtonRaphson::initializeGlobally() void MbD::PosICDragLimitNewtonRaphson::setdragParts(std::shared_ptr>> dragParts) { + (void) dragParts; assert(false); }