summaryrefslogtreecommitdiff
path: root/libpqpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp')
-rw-r--r--libpqpp/pq-connection.cpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp
index ee1ddf9..a65d88b 100644
--- a/libpqpp/pq-connection.cpp
+++ b/libpqpp/pq-connection.cpp
@@ -18,19 +18,21 @@
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);
-}
+namespace {
+ void setup() __attribute__((constructor(101)));
+
+ void
+ setup()
+ {
+ // NOLINTNEXTLINE(hicpp-no-array-decay)
+ BOOST_ASSERT(PQisthreadsafe() == 1);
+ PQinitOpenSSL(1, 0);
+ }
-static void
-noNoticeProcessor(void *, const char *)
-{
+ void
+ noNoticeProcessor(void *, const char *)
+ {
+ }
}
// NOLINTNEXTLINE(bugprone-throw-keyword-missing)