From ee71d0041f9c01d89405e0e97acd11e327207ba9 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 19 Jul 2015 09:41:46 -0400 Subject: [PATCH] Cleared virtual destructor warnings under GCC with -Wall --- gfpcrypt.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfpcrypt.h b/gfpcrypt.h index 321ac046..4a5155a2 100644 --- a/gfpcrypt.h +++ b/gfpcrypt.h @@ -87,6 +87,7 @@ class CRYPTOPP_NO_VTABLE DL_GroupParameters_IntegerBasedImpl : public DL_GroupPa public: typedef typename GROUP_PRECOMP::Element Element; + virtual ~DL_GroupParameters_IntegerBased() { } // GeneratibleCryptoMaterial interface bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const @@ -119,6 +120,8 @@ CRYPTOPP_DLL_TEMPLATE_CLASS DL_GroupParameters_IntegerBasedImpl { public: + virtual ~DL_GroupParameters_IntegerBasedImpl() { } + // DL_GroupParameters bool IsIdentity(const Integer &element) const {return element == Integer::One();} void SimultaneousExponentiate(Element *results, const Element &base, const Integer *exponents, unsigned int exponentsCount) const;