aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/chilbert/StaticBitVec.hpp6
-rw-r--r--include/chilbert/chilbert.ipp2
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;