diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-03-18 04:51:43 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-03-18 04:51:43 -0400 |
commit | e6817b73e5ac026c4bfa70c361dc5a4e485a7776 (patch) | |
tree | 25ab702b3ed8eea6e73bfdd98202dc89eb3aef43 /drbg.h | |
parent | 8ad6782bec71f0ba6933e7d82a5ae6b68d95dfbc (diff) | |
download | cryptopp-git-e6817b73e5ac026c4bfa70c361dc5a4e485a7776.tar.gz |
Cleared -Wunused-but-set-variable for GCC when using word128
Diffstat (limited to 'drbg.h')
-rw-r--r-- | drbg.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -207,7 +207,7 @@ public: //! </pre>
Hash_DRBG(const byte* entropy=NULLPTR, size_t entropyLength=STRENGTH, const byte* nonce=NULLPTR,
size_t nonceLength=0, const byte* personalization=NULLPTR, size_t personalizationLength=0)
- : NIST_DRBG(), m_reseed(0), m_c(SEEDLENGTH), m_v(SEEDLENGTH)
+ : NIST_DRBG(), m_c(SEEDLENGTH), m_v(SEEDLENGTH), m_reseed(0)
{
if (entropy != NULLPTR && entropyLength != 0)
DRBG_Instantiate(entropy, entropyLength, nonce, nonceLength, personalization, personalizationLength);
@@ -321,7 +321,7 @@ public: //! </pre>
HMAC_DRBG(const byte* entropy=NULLPTR, size_t entropyLength=STRENGTH, const byte* nonce=NULLPTR,
size_t nonceLength=0, const byte* personalization=NULLPTR, size_t personalizationLength=0)
- : NIST_DRBG(), m_reseed(0), m_k(HASH::DIGESTSIZE), m_v(HASH::DIGESTSIZE)
+ : NIST_DRBG(), m_k(HASH::DIGESTSIZE), m_v(HASH::DIGESTSIZE), m_reseed(0)
{
if (entropy != NULLPTR && entropyLength != 0)
DRBG_Instantiate(entropy, entropyLength, nonce, nonceLength, personalization, personalizationLength);
@@ -541,6 +541,8 @@ void Hash_DRBG<HASH, STRENGTH, SEEDLENGTH>::Hash_Generate(const byte* additional i--; carry >>= 8;
}
+ // CRYPTOPP_WORD128_AVAILABLE causes -Wunused-but-set-variable
+ CRYPTOPP_UNUSED(k);
}
m_reseed++;
|