From bf628321e51263db33cbee5beb78e2cacaa9ea33 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 27 Jul 2022 22:46:44 +0100 Subject: Suppress false warning --- libpqpp/pq-command.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libpqpp') 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(PQCommandParamFmt::get(std::forward(v)...)); lengths[n] = static_cast(bufs[n]->length()); formats[n] = 0; -- cgit v1.2.3