From d5e36aa2b2ca26fe689ae9e29c74b3565dd018c7 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 28 Sep 2009 00:55:42 +0000 Subject: Fix warnings from BSD build and work around the failures of BSD make git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11771 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/base.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src') diff --git a/src/base.cpp b/src/base.cpp index 2b022688d..76e469482 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -91,6 +91,10 @@ ExtensionItem::ExtensionItem(const std::string& Key, Module* mod) : key(Key), ow { } +ExtensionItem::~ExtensionItem() +{ +} + void* ExtensionItem::get_raw(const Extensible* container) { ExtensibleStore::const_iterator i = container->extensions.find(key); @@ -175,6 +179,10 @@ LocalExtItem::LocalExtItem(const std::string& Key, Module* mod) : ExtensionItem( { } +LocalExtItem::~LocalExtItem() +{ +} + std::string LocalExtItem::serialize(SerializeFormat format, const Extensible* container, void* item) { return ""; @@ -187,6 +195,10 @@ void LocalExtItem::unserialize(SerializeFormat format, Extensible* container, co LocalStringExt::LocalStringExt(const std::string& Key, Module* Owner) : SimpleExtItem(Key, Owner) { } +LocalStringExt::~LocalStringExt() +{ +} + std::string LocalStringExt::serialize(SerializeFormat format, const Extensible* container, void* item) { if (item && format == FORMAT_USER) @@ -198,6 +210,10 @@ LocalIntExt::LocalIntExt(const std::string& Key, Module* mod) : LocalExtItem(Key { } +LocalIntExt::~LocalIntExt() +{ +} + std::string LocalIntExt::serialize(SerializeFormat format, const Extensible* container, void* item) { if (format != FORMAT_USER) @@ -226,6 +242,10 @@ StringExtItem::StringExtItem(const std::string& Key, Module* mod) : ExtensionIte { } +StringExtItem::~StringExtItem() +{ +} + std::string* StringExtItem::get(const Extensible* container) { return static_cast(get_raw(container)); -- cgit v1.2.3