1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 09:13:15 +02:00

Fix a few oddball warnings that came up from clang, and also make it so webcpanel.so can be compiled under Mac OS X.

This commit is contained in:
Naram Qashat
2012-09-24 15:54:49 -04:00
parent a71e2fb64e
commit 38ad523f91
7 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -220,7 +220,7 @@ class serialize_obj : public dynamic_reference_base
{
if (!this->invalid)
return this->ref != NULL;
return NULL;
return false;
}
inline void operator=(T *newref)
+2
View File
@@ -78,6 +78,7 @@ foreach(MODULE_FOLDER ${MODULES_FOLDERS})
endif(WIN32)
set_target_properties(${SO} PROPERTIES LINKER_LANGUAGE CXX PREFIX "" SUFFIX "" LINK_FLAGS "${TEMP_LDFLAGS} ${WIN32_NO_LIBS}")
add_dependencies(${SO} ${PROGRAM_NAME})
target_link_libraries(${SO} ${PROGRAM_NAME})
if(GETTEXT_FOUND)
add_dependencies(${SO} module_language)
endif(GETTEXT_FOUND)
@@ -180,6 +181,7 @@ foreach(MODULE_FOLDER ${MODULES_FOLDERS})
add_library(${SO} MODULE ${MODULES_SUBDIR_SRCS})
set_target_properties(${SO} PROPERTIES LINKER_LANGUAGE CXX PREFIX "" SUFFIX "" LINK_FLAGS "${SUBDIR_LDFLAGS}")
add_dependencies(${SO} ${PROGRAM_NAME})
target_link_libraries(${SO} ${PROGRAM_NAME})
if(GETTEXT_FOUND)
add_dependencies(${SO} module_language)
endif(GETTEXT_FOUND)
+1
View File
@@ -15,6 +15,7 @@ class SQLSQLInterface : public SQLInterface
{
public:
SQLSQLInterface(Module *o) : SQLInterface(o) { }
virtual ~SQLSQLInterface() { }
void OnResult(const SQLResult &r) anope_override
{
-1
View File
@@ -15,7 +15,6 @@ class IdentifyInterface : public LDAPInterface
void Add(LDAPQuery id, const Anope::string &nick)
{
std::map<LDAPQuery, Anope::string>::iterator it = this->requests.find(id);
this->requests[id] = nick;
}
+3 -2
View File
@@ -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<Anope::string, Anope::string>::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;
+1 -1
View File
@@ -160,4 +160,4 @@ namespace WebPanel
#include "pages/chanserv/access.h"
#include "pages/chanserv/akick.h"
#include "pages/memoserv/memos.h"
#include "pages/memoserv/memos.h"
+1 -1
View File
@@ -283,7 +283,7 @@ class InspIRCdTS6Proto : public IRCDProto
UplinkSocket::Message(Me) << "ENDBURST";
}
void SendGlobopsInternal(BotInfo *source, const Anope::string &buf)
void SendGlobopsInternal(const BotInfo *source, const Anope::string &buf)
{
if (has_globopsmod)
UplinkSocket::Message(source) << "SNONOTICE g :" << buf;