diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-07-27 22:46:44 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-07-27 22:46:44 +0100 |
commit | bf628321e51263db33cbee5beb78e2cacaa9ea33 (patch) | |
tree | b4c7d769c4674ba37141fb89f2fa954b032ad417 | |
parent | Add missing include (diff) | |
download | libdbpp-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.cpp | 1 |
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; |