summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-12-01 15:06:23 +0100
committerlouiz’ <louiz@louiz.org>2017-12-02 20:08:50 +0100
commit6dc49f32844b846bd9675ed6a9d669e266122276 (patch)
tree5bab5fa9cce4fef988b52d6e872fe04c75e8c7ad
parent414bbca0bc2bf20c4f424c2368997a46129b32cc (diff)
downloadbiboumi-6dc49f32844b846bd9675ed6a9d669e266122276.tar.gz
biboumi-6dc49f32844b846bd9675ed6a9d669e266122276.tar.bz2
biboumi-6dc49f32844b846bd9675ed6a9d669e266122276.tar.xz
biboumi-6dc49f32844b846bd9675ed6a9d669e266122276.zip
Fix a few warnings
-rw-r--r--src/database/postgresql_statement.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/database/postgresql_statement.hpp b/src/database/postgresql_statement.hpp
index 5016350..6e5dec8 100644
--- a/src/database/postgresql_statement.hpp
+++ b/src/database/postgresql_statement.hpp
@@ -73,12 +73,12 @@ class PostgresqlStatement: public Statement
this->params.push_back(data);
return true;
}
- bool bind_int64(const int pos, const std::int64_t value) override
+ bool bind_int64(const int, const std::int64_t value) override
{
this->params.push_back(std::to_string(value));
return true;
}
- bool bind_null(const int pos) override
+ bool bind_null(const int) override
{
this->params.push_back("NULL");
return true;
@@ -99,8 +99,9 @@ private:
}
log_debug("body: ", body);
+ const int param_size = static_cast<int>(this->params.size());
this->result = PQexecParams(this->conn, this->body.data(),
- this->params.size(),
+ param_size,
nullptr,
params.data(),
nullptr,