diff options
author | David Robillard <d@drobilla.net> | 2023-05-03 13:53:20 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-05-03 13:53:20 -0400 |
commit | 5c8e540e6b40578068cd470a9857e94f77458787 (patch) | |
tree | c8b14a34020de73f14fe9bf852dec61f5e36e408 /include | |
parent | 25255321bc29f0961ec15aa3bb668f946674e52b (diff) | |
download | chilbert-5c8e540e6b40578068cd470a9857e94f77458787.tar.gz chilbert-5c8e540e6b40578068cd470a9857e94f77458787.tar.bz2 chilbert-5c8e540e6b40578068cd470a9857e94f77458787.zip |
Fix unused parameter warnings
Diffstat (limited to 'include')
-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; |