]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4249] Additional comment
authorThomas Markwalder <tmark@isc.org>
Mon, 8 Dec 2025 23:35:11 +0000 (18:35 -0500)
committerThomas Markwalder <tmark@isc.org>
Mon, 8 Dec 2025 23:35:11 +0000 (18:35 -0500)
modified:   src/lib/dhcpsrv/memfile_lease_mgr.cc
    fixed catch expressions

src/lib/dhcpsrv/memfile_lease_mgr.cc

index 090a8c7d2497a7c92b72576d736cc169e9801d2f..4f5e6f8c254dc77ab6a88d24468e96a07ecadc42 100644 (file)
@@ -3746,7 +3746,7 @@ Memfile_LeaseMgr::writeLeases4Internal(const std::string& filename) {
             tmpfile.append(*lease);
         }
         tmpfile.close();
-    } catch (const std::exception& ex) {
+    } catch (const std::exception&) {
         // Failed writing the temp file, remove it.
         ::remove(tmpname.c_str());
         throw;
@@ -3802,7 +3802,7 @@ Memfile_LeaseMgr::writeLeases6Internal(const std::string& filename) {
             tmpfile.append(*lease);
         }
         tmpfile.close();
-    } catch (const std::exception& ex) {
+    } catch (const std::exception&) {
         // Failed writing the temp file, remove it.
         ::remove(tmpname.c_str());
         throw;