From 67c8e8c9feb7a5bd07d4216c2b07b91c9761cedf Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sat, 28 Feb 2026 13:13:15 -0500 Subject: [PATCH] Fix unused parameter compiler warnings --- src/mathic/Action.cpp | 2 ++ src/mathic/DivMask.h | 6 +++++- src/mathic/HelpAction.cpp | 1 + src/mathic/PairQueue.h | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/mathic/Action.cpp b/src/mathic/Action.cpp index a0e2488..b9f7ae6 100644 --- a/src/mathic/Action.cpp +++ b/src/mathic/Action.cpp @@ -9,6 +9,8 @@ namespace mathic { std::vector tokens, CliParser& parser ) { + (void)parser; + if (!tokens.empty()) { reportError("Expected a dash (-) to indicate an option when reading \"" + tokens.front() + "\"."); diff --git a/src/mathic/DivMask.h b/src/mathic/DivMask.h index 96f4bb9..43edf6b 100644 --- a/src/mathic/DivMask.h +++ b/src/mathic/DivMask.h @@ -386,7 +386,11 @@ namespace mathic { public: void resetDivMask() {MATHIC_ASSERT(false);} DivMask getDivMask() const {MATHIC_ASSERT(false); return DivMask();} - bool canDivide(const HasDivMask& t) const {return true;} + bool canDivide(const HasDivMask& t) const + { + (void)t; + return true; + } template void updateToLowerBound(const HasDivMask& entry) {} }; diff --git a/src/mathic/HelpAction.cpp b/src/mathic/HelpAction.cpp index 2f3492d..6911865 100644 --- a/src/mathic/HelpAction.cpp +++ b/src/mathic/HelpAction.cpp @@ -39,6 +39,7 @@ namespace mathic { } void HelpAction::pushBackParameters(std::vector& parameters) { + (void)parameters; } namespace { diff --git a/src/mathic/PairQueue.h b/src/mathic/PairQueue.h index c8450ce..273dcd3 100644 --- a/src/mathic/PairQueue.h +++ b/src/mathic/PairQueue.h @@ -181,10 +181,12 @@ namespace mathic { void undoAdd() {} void retireIndex(size_t index) { + (void)index; MATHIC_ASSERT(false); // this method should not be called. } bool retired(size_t index) const { + (void)index; return false; } };