Oops. Forgot to attach the patch ;-)

Chris



On 5/13/07, Chris Morgan <[EMAIL PROTECTED]> wrote:
> Hello Wei, it's been a while ;-)
>
> A few classes produce compile warnings under gcc 4.1.2 here on
> Kubuntu. This patch adds empty virtual destructors to four classes
> that produced the warning. Patch is against crypto++ 5.5.
>
> Chris
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Index: strciphr.h
===================================================================
--- strciphr.h	(revision 627)
+++ strciphr.h	(working copy)
@@ -64,6 +64,7 @@
 
 struct CRYPTOPP_DLL CRYPTOPP_NO_VTABLE AdditiveCipherAbstractPolicy
 {
+	virtual ~AdditiveCipherAbstractPolicy() { }
 	virtual unsigned int GetAlignment() const {return 1;}
 	virtual unsigned int GetBytesPerIteration() const =0;
 	virtual unsigned int GetOptimalBlockSize() const {return GetBytesPerIteration();}
@@ -160,6 +161,7 @@
 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE CFB_CipherAbstractPolicy
 {
 public:
+	virtual ~CFB_CipherAbstractPolicy() { }
 	virtual unsigned int GetAlignment() const =0;
 	virtual unsigned int GetBytesPerIteration() const =0;
 	virtual byte * GetRegisterBegin() =0;
Index: cryptlib.h
===================================================================
--- cryptlib.h	(revision 627)
+++ cryptlib.h	(working copy)
@@ -353,6 +353,8 @@
 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE SimpleKeyingInterface
 {
 public:
+	virtual ~SimpleKeyingInterface() { }
+
 	//! returns smallest valid key length in bytes */
 	virtual size_t MinKeyLength() const =0;
 	//! returns largest valid key length in bytes */
@@ -678,6 +680,8 @@
 class CRYPTOPP_NO_VTABLE Waitable
 {
 public:
+	  virtual ~Waitable() { }
+
 	//! maximum number of wait objects that this object can return
 	virtual unsigned int GetMaxWaitObjectCount() const =0;
 	//! put wait objects into container

Reply via email to