From 5c8e540e6b40578068cd470a9857e94f77458787 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 May 2023 13:53:20 -0400 Subject: Fix unused parameter warnings --- include/chilbert/StaticBitVec.hpp | 6 +++++- include/chilbert/chilbert.ipp | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/chilbert/StaticBitVec.hpp b/include/chilbert/StaticBitVec.hpp index 056d91a..acfe8a1 100644 --- a/include/chilbert/StaticBitVec.hpp +++ b/include/chilbert/StaticBitVec.hpp @@ -39,7 +39,11 @@ public: StaticBitVec() = default; /// Constructor for compatibility with DynamicBitVec - explicit StaticBitVec(const size_t bits) { assert(bits == size()); } + explicit StaticBitVec(const size_t bits) + { + (void)bits; + assert(bits == size()); + } /// Constructor for compatibility with DynamicBitVec StaticBitVec(const size_t bits, const Rack value) diff --git a/include/chilbert/chilbert.ipp b/include/chilbert/chilbert.ipp index 8eda120..1c63178 100644 --- a/include/chilbert/chilbert.ipp +++ b/include/chilbert/chilbert.ipp @@ -134,6 +134,8 @@ template inline void transform_inv(const I& e, const size_t d, const size_t n, I& a) { + (void)n; + assert(a.size() == n); a.rotl(d); a ^= e; -- cgit v1.2.1