diff --git a/OndselSolver/ASMTAssembly.cpp b/OndselSolver/ASMTAssembly.cpp index 0f3dd1d..9e980f6 100644 --- a/OndselSolver/ASMTAssembly.cpp +++ b/OndselSolver/ASMTAssembly.cpp @@ -378,8 +378,8 @@ std::shared_ptr MbD::ASMTAssembly::assemblyFromFile(const std::str } auto assembly = ASMTAssembly::With(); auto str = assembly->popOffTop(lines); - bool bool1 = str == "freeCAD: 3D CAD with Motion Simulation by askoh.com"; - bool bool2 = str == "OndselSolver"; + [[maybe_unused]] bool bool1 = str == "freeCAD: 3D CAD with Motion Simulation by askoh.com"; + [[maybe_unused]] bool bool2 = str == "OndselSolver"; assert(bool1 || bool2); assert(assembly->readStringOffTop(lines) == "Assembly"); assembly->setFilename(fileName); diff --git a/OndselSolver/ASMTItem.cpp b/OndselSolver/ASMTItem.cpp index a18e7c9..f408475 100644 --- a/OndselSolver/ASMTItem.cpp +++ b/OndselSolver/ASMTItem.cpp @@ -191,7 +191,7 @@ void MbD::ASMTItem::createMbD(std::shared_ptr, std::shared_ptr) assert(false); } -void MbD::ASMTItem::updateForFrame(size_t index) +void MbD::ASMTItem::updateForFrame([[maybe_unused]] size_t index) { assert(false); } diff --git a/OndselSolver/FullMatrix.h b/OndselSolver/FullMatrix.h index 90e54aa..f8e5fc7 100644 --- a/OndselSolver/FullMatrix.h +++ b/OndselSolver/FullMatrix.h @@ -698,7 +698,7 @@ namespace MbD { the1x = std::atan2(this->at(2)->at(0), sthe2z * this->at(2)->at(2)); } the0z = std::atan2(this->at(0)->at(2), this->at(1)->at(2)); - auto aaaa = std::atan2(this->at(0)->at(2), -this->at(1)->at(2)); //Check missing minus is needed above. Smalltalk has missing minus too. + [[maybe_unused]] auto aaaa = std::atan2(this->at(0)->at(2), -this->at(1)->at(2)); //Check missing minus is needed above. Smalltalk has missing minus too. assert(Numeric::equaltol(the0z, aaaa, 1.0e-9)); } answer->atiput(0, the0z); diff --git a/OndselSolver/FullVector.h b/OndselSolver/FullVector.h index 409470f..73f7bb9 100644 --- a/OndselSolver/FullVector.h +++ b/OndselSolver/FullVector.h @@ -180,7 +180,7 @@ namespace MbD { } } template - inline void FullVector::conditionSelfWithTol(double tol) + inline void FullVector::conditionSelfWithTol([[maybe_unused]] double tol) { assert(false && tol != tol); // clang++ flips out with warnings if you don't use 'tol' // but suppressing that warning breaks Visual Studio.