From d7ff2e0d651d6b0bc24cf2b173613d6386576bc4 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 17 Feb 2019 16:16:11 +0000 Subject: Enable hicpp checks and fix accordingly --- libpqpp/pq-connection.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libpqpp/pq-connection.cpp') diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp index f20dfb5..f767b57 100644 --- a/libpqpp/pq-connection.cpp +++ b/libpqpp/pq-connection.cpp @@ -13,6 +13,7 @@ NAMEDFACTORY("postgresql", PQ::Connection, DB::ConnectionFactory); static void setup() __attribute__((constructor(101))); static void setup() { + // NOLINTNEXTLINE(hicpp-no-array-decay) BOOST_ASSERT(PQisthreadsafe() == 1); PQinitOpenSSL(1, 0); } @@ -81,6 +82,7 @@ PQ::Connection::bulkUpdateStyle() const void PQ::Connection::ping() const { + // NOLINTNEXTLINE(hicpp-signed-bitwise) struct pollfd fd { PQsocket(conn), POLLRDHUP | POLLERR | POLLHUP | POLLNVAL, 0 }; if (PQstatus(conn) != CONNECTION_OK || poll(&fd, 1, 0)) { if (inTx()) { -- cgit v1.2.3