summaryrefslogtreecommitdiff
path: root/modules/database/db_sql.cpp
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/database/db_sql.cpp
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/database/db_sql.cpp')
-rw-r--r--modules/database/db_sql.cpp4
1 files changed, 2 insertions, 2 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: