From 3887c919c3a71c7951ab01bbf0d379ee555e4645 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 16 Aug 2017 22:56:36 -0400 Subject: [PATCH] Clear unused variable warnings under MSVC --- dh2.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dh2.cpp b/dh2.cpp index 26b714d4..4c062d4e 100644 --- a/dh2.cpp +++ b/dh2.cpp @@ -11,11 +11,14 @@ NAMESPACE_BEGIN(CryptoPP) struct NullCryptoParameters : public CryptoParameters { void AssignFrom(const NameValuePairs &source) { + CRYPTOPP_UNUSED(source); } bool Validate(RandomNumberGenerator &rng, unsigned int level) const { + CRYPTOPP_UNUSED(rng); CRYPTOPP_UNUSED(level); return false; } bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const { + CRYPTOPP_UNUSED(name); CRYPTOPP_UNUSED(valueType); CRYPTOPP_UNUSED(pValue); return false; } }; @@ -35,10 +38,14 @@ struct NullSimpleKeyAgreementDomain : public TwoBases