From: Razvan Becheriu Date: Fri, 10 Feb 2023 15:45:16 +0000 (+0200) Subject: [#2702] fixed compilation warning X-Git-Tag: Kea-2.3.5~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33caacfde39e00c69032e165d8389430caeb2d4a;p=thirdparty%2Fkea.git [#2702] fixed compilation warning --- diff --git a/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc b/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc index 17c05bc324..fba9dc1568 100644 --- a/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc +++ b/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc @@ -2059,7 +2059,7 @@ TEST_F(MemfileLeaseMgrTest, lease4ContainerIndexUpdate) { ASSERT_NO_THROW({ // Recreate Memfile_LeaseMgr. LeaseMgrFactory::destroy(); - ASSERT_NO_THROW(LeaseMgrFactory::create(dbaccess)); + LeaseMgrFactory::create(dbaccess); lmptr_ = &(LeaseMgrFactory::instance()); }); @@ -2190,7 +2190,7 @@ TEST_F(MemfileLeaseMgrTest, lease6ContainerIndexUpdate) { ASSERT_NO_THROW({ // Recreate Memfile_LeaseMgr. LeaseMgrFactory::destroy(); - ASSERT_NO_THROW(LeaseMgrFactory::create(dbaccess)); + LeaseMgrFactory::create(dbaccess); lmptr_ = &(LeaseMgrFactory::instance()); }); diff --git a/src/lib/pgsql/pgsql_connection.cc b/src/lib/pgsql/pgsql_connection.cc index 753ee0a4be..6ec896d4ca 100644 --- a/src/lib/pgsql/pgsql_connection.cc +++ b/src/lib/pgsql/pgsql_connection.cc @@ -262,6 +262,7 @@ PgSqlConnection::getConnParametersInternal(bool logging) { // tcp_user_timeout parameter is a PostgreSQL 12+ feature. #ifdef HAVE_PGSQL_TCP_USER_TIMEOUT oss << " tcp_user_timeout = " << tcp_user_timeout * 1000; + static_cast(logging); #else if (logging) { DB_LOG_WARN(PGSQL_TCP_USER_TIMEOUT_UNSUPPORTED).arg();