From a6105c54173196d78864c73cbf439747d0d244db Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 23 Jan 2017 04:35:30 -0500 Subject: [PATCH] Clear MSVC warning "warning C4189: 'params': local variable is initialized but not referenced" --- eccrypto.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eccrypto.h b/eccrypto.h index 1c178384..b9f5ecec 100644 --- a/eccrypto.h +++ b/eccrypto.h @@ -444,9 +444,7 @@ public: { this->AccessGroupParameters().Initialize(ec, G, n); this->SetPrivateExponent(x); - - DL_GroupParameters_EC ¶ms = this->AccessGroupParameters(); - CRYPTOPP_ASSERT(x>=1 && x<=params.GetSubgroupOrder()-1); + CRYPTOPP_ASSERT(x>=1 && x<=this->AccessGroupParameters().GetSubgroupOrder()-1); } //! \brief Create an EC private key