summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-07-27 22:46:44 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-07-27 22:46:44 +0100
commitbf628321e51263db33cbee5beb78e2cacaa9ea33 (patch)
treeb4c7d769c4674ba37141fb89f2fa954b032ad417
parentAdd missing include (diff)
downloadlibdbpp-postgresql-1.4.8.tar.bz2
libdbpp-postgresql-1.4.8.tar.xz
libdbpp-postgresql-1.4.8.zip
Suppress false warninglibdbpp-postgresql-1.4.8
-rw-r--r--libpqpp/pq-command.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpqpp/pq-command.cpp b/libpqpp/pq-command.cpp
index dad2ef9..e366c51 100644
--- a/libpqpp/pq-command.cpp
+++ b/libpqpp/pq-command.cpp
@@ -73,6 +73,7 @@ void
PQ::Command::paramSet(unsigned int n, T &&... v)
{
paramsAtLeast(n);
+ // cppcheck-suppress constStatement
bufs[n] = std::make_unique<std::string>(PQCommandParamFmt::get(std::forward<T>(v)...));
lengths[n] = static_cast<int>(bufs[n]->length());
formats[n] = 0;