From e6817b73e5ac026c4bfa70c361dc5a4e485a7776 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 18 Mar 2017 04:51:43 -0400 Subject: [PATCH] Cleared -Wunused-but-set-variable for GCC when using word128 --- drbg.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drbg.h b/drbg.h index 3d533dc0..043fa198 100644 --- a/drbg.h +++ b/drbg.h @@ -207,7 +207,7 @@ public: //! 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: //! 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_Generate(const byte* additional i--; carry >>= 8; } + // CRYPTOPP_WORD128_AVAILABLE causes -Wunused-but-set-variable + CRYPTOPP_UNUSED(k); } m_reseed++;