summaryrefslogtreecommitdiff
path: root/nbtheory.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-19 10:24:10 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-19 10:24:10 -0400
commit90b5dc9e61fdd40181112a9fd52b47dcca5520be (patch)
tree48ea6819964699a03c8a478a97f86c264a98d8b7 /nbtheory.cpp
parent8f59d9af3598927cd83ac0582abc0a977395f049 (diff)
downloadcryptopp-git-90b5dc9e61fdd40181112a9fd52b47dcca5520be.tar.gz
Cleared remaining virtual destructor warnings under GCC with -Wall
Diffstat (limited to 'nbtheory.cpp')
-rw-r--r--nbtheory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/nbtheory.cpp b/nbtheory.cpp
index 3fdea4e6..0334cf58 100644
--- a/nbtheory.cpp
+++ b/nbtheory.cpp
@@ -308,7 +308,8 @@ PrimeSieve::PrimeSieve(const Integer &first, const Integer &last, const Integer
bool PrimeSieve::NextCandidate(Integer &c)
{
bool safe = SafeConvert(std::find(m_sieve.begin()+m_next, m_sieve.end(), false) - m_sieve.begin(), m_next);
- assert(safe);
+ assert(safe); CRYPTOPP_UNUSED(safe);
+
if (m_next == m_sieve.size())
{
m_first += long(m_sieve.size())*m_step;