From 70bddb83efc9eb720714b0434b1e0df55e653c33 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 1 Jul 2015 21:35:19 -0400 Subject: [PATCH] Cleared unused function warnings --- eccrypto.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eccrypto.cpp b/eccrypto.cpp index 922104c4..dfff26e1 100644 --- a/eccrypto.cpp +++ b/eccrypto.cpp @@ -11,6 +11,10 @@ #include "argnames.h" #include "ec2n.h" +#if GCC_DIAGNOSTIC_AWARE +# pragma GCC diagnostic ignored "-Wunused-function" +#endif + NAMESPACE_BEGIN(CryptoPP) #if 0 @@ -436,7 +440,7 @@ template void DL_GroupParameters_EC::Initialize(const OID &oid) Element G; bool result = GetCurve().DecodePoint(G, ssG, (size_t)ssG.MaxRetrievable()); this->SetSubgroupGenerator(G); - assert(result); + assert(result); CRYPTOPP_UNUSED(result); StringSource ssN(param.n, true, new HexDecoder); m_n.Decode(ssN, (size_t)ssN.MaxRetrievable());