diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-17 16:16:11 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-17 16:16:11 +0000 |
commit | d7ff2e0d651d6b0bc24cf2b173613d6386576bc4 (patch) | |
tree | 71a4cb0834503115ca84dc097a2b5394ac95cd99 /libpqpp/pq-connection.cpp | |
parent | Modernize clang tidy fixes (diff) | |
download | libdbpp-postgresql-d7ff2e0d651d6b0bc24cf2b173613d6386576bc4.tar.bz2 libdbpp-postgresql-d7ff2e0d651d6b0bc24cf2b173613d6386576bc4.tar.xz libdbpp-postgresql-d7ff2e0d651d6b0bc24cf2b173613d6386576bc4.zip |
Enable hicpp checks and fix accordingly
Diffstat (limited to 'libpqpp/pq-connection.cpp')
-rw-r--r-- | libpqpp/pq-connection.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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()) { |