diff options
| author | Peter Powell <petpow@saberuk.com> | 2015-07-07 23:49:53 +0100 |
|---|---|---|
| committer | Peter Powell <petpow@saberuk.com> | 2015-07-07 23:49:53 +0100 |
| commit | 7a15dd936f876882999a18117937d2eeef2e7dc0 (patch) | |
| tree | 4de83e16dd98be6a23e2a451fe3fd798de58c09a /modules | |
| parent | 4929e5d108e54a8313f539892b884131bc6456c1 (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')
| -rw-r--r-- | modules/database/db_sql.cpp | 4 | ||||
| -rw-r--r-- | modules/pseudoclients/chanserv/chanserv.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/database/db_sql.cpp b/modules/database/db_sql.cpp index 4f6a1e909..fed0050e4 100644 --- a/modules/database/db_sql.cpp +++ b/modules/database/db_sql.cpp @@ -270,8 +270,8 @@ class DBMySQL : public Module, public Pipe else q.SetNull(field->GetName()); - for (Query &q : SQL->Replace(prefix + object->GetSerializableType()->GetName(), q, { "id" })) - Run(q); + for (Query &q2 : SQL->Replace(prefix + object->GetSerializableType()->GetName(), q, { "id" })) + Run(q2); } public: 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) |
