diff options
-rw-r--r-- | include/chilbert/StaticBitVec.hpp | 6 | ||||
-rw-r--r-- | include/chilbert/chilbert.ipp | 2 |
2 files changed, 7 insertions, 1 deletions
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<class I> 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; |