summaryrefslogtreecommitdiff
path: root/modules/pseudoclients
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2015-07-07 23:49:53 +0100
committerPeter Powell <petpow@saberuk.com>2015-07-07 23:49:53 +0100
commit7a15dd936f876882999a18117937d2eeef2e7dc0 (patch)
tree4de83e16dd98be6a23e2a451fe3fd798de58c09a /modules/pseudoclients
parent4929e5d108e54a8313f539892b884131bc6456c1 (diff)
Fix various Clang compiler warnings.
include/modules/sql.h:103:10: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] modules/database/db_sql.cpp:273:15: warning: declaration shadows a local variable [-Wshadow] modules/pseudoclients/chanserv/chanserv.cpp:319:150: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare] modules/pseudoclients/chanserv/chanserv.cpp:329:80: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
Diffstat (limited to 'modules/pseudoclients')
-rw-r--r--modules/pseudoclients/chanserv/chanserv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pseudoclients/chanserv/chanserv.cpp b/modules/pseudoclients/chanserv/chanserv.cpp
index 3bab894e9..5dd83188f 100644
--- a/modules/pseudoclients/chanserv/chanserv.cpp
+++ b/modules/pseudoclients/chanserv/chanserv.cpp
@@ -310,7 +310,7 @@ class ChanServCore : public Module
void OnDelCore(NickServ::Account *nc) override
{
- int max_reg = Config->GetModule(this)->Get<int>("maxregistered");
+ unsigned int max_reg = Config->GetModule(this)->Get<unsigned int>("maxregistered");
for (ChanServ::Channel *ci : nc->GetRefs<ChanServ::Channel *>(ChanServ::channel))
{
if (ci->GetFounder() == nc)