From 38ad523f91c5b89cebd01e6e0f61ea8859c02253 Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Mon, 24 Sep 2012 15:54:49 -0400 Subject: Fix a few oddball warnings that came up from clang, and also make it so webcpanel.so can be compiled under Mac OS X. --- modules/extra/m_ldap_oper.cpp | 1 - modules/extra/sql.h | 5 +++-- modules/extra/webcpanel/webcpanel.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/extra') diff --git a/modules/extra/m_ldap_oper.cpp b/modules/extra/m_ldap_oper.cpp index f432f35b8..4f1784553 100644 --- a/modules/extra/m_ldap_oper.cpp +++ b/modules/extra/m_ldap_oper.cpp @@ -15,7 +15,6 @@ class IdentifyInterface : public LDAPInterface void Add(LDAPQuery id, const Anope::string &nick) { - std::map::iterator it = this->requests.find(id); this->requests[id] = nick; } diff --git a/modules/extra/sql.h b/modules/extra/sql.h index 62d7b73c0..7e10c7150 100644 --- a/modules/extra/sql.h +++ b/modules/extra/sql.h @@ -32,7 +32,7 @@ struct SQLQuery this->parameters.clear(); return *this; } - + bool operator==(const SQLQuery &other) const { return this->query == other.query; @@ -98,7 +98,7 @@ class SQLResult std::map::const_iterator it = rows.find(col); if (it == rows.end()) throw SQLException("Unknown column name in SQLResult: " + col); - + return it->second; } }; @@ -111,6 +111,7 @@ class SQLInterface Module *owner; SQLInterface(Module *m) : owner(m) { } + virtual ~SQLInterface() { } virtual void OnResult(const SQLResult &r) = 0; virtual void OnError(const SQLResult &r) = 0; diff --git a/modules/extra/webcpanel/webcpanel.h b/modules/extra/webcpanel/webcpanel.h index 79f902b0f..948d5b1c2 100644 --- a/modules/extra/webcpanel/webcpanel.h +++ b/modules/extra/webcpanel/webcpanel.h @@ -160,4 +160,4 @@ namespace WebPanel #include "pages/chanserv/access.h" #include "pages/chanserv/akick.h" -#include "pages/memoserv/memos.h" \ No newline at end of file +#include "pages/memoserv/memos.h" -- cgit