From b9ebf41d9c7fbc9d8ef3b9a73abac4148e5b106a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Jul 2011 21:51:12 +0200 Subject: Suppress warnings --- odb/pgsql/connection.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'odb/pgsql/connection.cxx') diff --git a/odb/pgsql/connection.cxx b/odb/pgsql/connection.cxx index f65cba4..36a5713 100644 --- a/odb/pgsql/connection.cxx +++ b/odb/pgsql/connection.cxx @@ -17,15 +17,15 @@ using namespace std; +extern "C" void +odb_pgsql_process_notice (void*, const char*) +{ +} + namespace odb { namespace pgsql { - static void - nop_process_notice (void*, const char*) - { - } - connection:: connection (database_type& db) : db_ (db), @@ -46,7 +46,7 @@ namespace odb // Suppress server notifications to stdout. // - PQsetNoticeProcessor (handle_, &nop_process_notice, 0); + PQsetNoticeProcessor (handle_, &odb_pgsql_process_notice, 0); // Establish whether date/time values are represented as // 8-byte integers. -- cgit v1.1