summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-12-10 19:19:38 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-12-10 19:19:38 +0000
commit84b60b20ee4739458275ba9c0e67656d8c569248 (patch)
tree63b4839950dfad94132ba1f47c2128d2acc89394
parentAdd override tag (diff)
downloadlibdbpp-postgresql-84b60b20ee4739458275ba9c0e67656d8c569248.tar.bz2
libdbpp-postgresql-84b60b20ee4739458275ba9c0e67656d8c569248.tar.xz
libdbpp-postgresql-84b60b20ee4739458275ba9c0e67656d8c569248.zip
Move suppression comment
Side effect of clang-format?
-rw-r--r--libpqpp/pq-connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp
index af74fac..d2c02b2 100644
--- a/libpqpp/pq-connection.cpp
+++ b/libpqpp/pq-connection.cpp
@@ -79,8 +79,8 @@ PQ::Connection::bulkUpdateStyle() const
void
PQ::Connection::ping() const
{
- // NOLINTNEXTLINE(hicpp-signed-bitwise)
struct pollfd fd {
+ // NOLINTNEXTLINE(hicpp-signed-bitwise)
PQsocket(conn), POLLRDHUP | POLLERR | POLLHUP | POLLNVAL, 0
};
if (PQstatus(conn) != CONNECTION_OK || poll(&fd, 1, 0)) {