From 655c1cc1f73ee8ffa63548a8802405b84aef1c4e Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Thu, 27 Oct 2011 18:20:34 -0400 Subject: [PATCH] Fix a few warnings that only showed up with gcc 3.4.6 here (sadly, there is one on every file about anonymous variadic macros that I can't get rid of). --- include/serialize.h | 3 ++- modules/extra/ldap.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/serialize.h b/include/serialize.h index 76b5e43aa..af7896c54 100644 --- a/include/serialize.h +++ b/include/serialize.h @@ -70,8 +70,9 @@ extern void RegisterTypes(); class SerializableBase { public: - typedef std::map serialized_data; + typedef std::map serialized_data; + virtual ~SerializableBase() { } virtual Anope::string serialize_name() = 0; virtual serialized_data serialize() = 0; virtual void alloc(serialized_data &) = 0; diff --git a/modules/extra/ldap.h b/modules/extra/ldap.h index e4be8a1a3..96b6eb5e4 100644 --- a/modules/extra/ldap.h +++ b/modules/extra/ldap.h @@ -105,6 +105,7 @@ class LDAPInterface Module *owner; LDAPInterface(Module *m) : owner(m) { } + virtual ~LDAPInterface() { } virtual void OnResult(const LDAPResult &r) { }