]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2702] fixed compilation warning
authorRazvan Becheriu <razvan@isc.org>
Fri, 10 Feb 2023 15:45:16 +0000 (17:45 +0200)
committerRazvan Becheriu <razvan@isc.org>
Fri, 10 Feb 2023 16:45:57 +0000 (18:45 +0200)
src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
src/lib/pgsql/pgsql_connection.cc

index 17c05bc32455adfa788e4695e935f6d537d87e83..fba9dc1568d3ec3a60fd057c6214cb0d48e26ef9 100644 (file)
@@ -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());
     });
 
index 753ee0a4be2faa149d3b9392e3942144bcc7da3a..6ec896d4ca42bd11dead60678ed76a87f1ee8714 100644 (file)
@@ -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<void>(logging);
 #else
         if (logging) {
             DB_LOG_WARN(PGSQL_TCP_USER_TIMEOUT_UNSUPPORTED).arg();