]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3991] Some improvements
authorFrancis Dupont <fdupont@isc.org>
Thu, 28 May 2026 12:48:03 +0000 (14:48 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 28 May 2026 12:48:03 +0000 (14:48 +0200)
src/lib/asiolink/unix_domain_socket.cc
src/lib/dns/labelsequence.cc
src/lib/util/unlock_guard.h

index 7b365eeb74eab7944c898211257599a8dc041822..30ebd8dd5f305a79ac1dd484decd0a41e13a8772 100644 (file)
@@ -36,7 +36,7 @@ public:
         try {
             close();
         } catch (...) {
-            // catch all exceptions.
+            // Catch and ignore all exceptions.
         }
     }
 
index bcf551c114a1d996e3f5645f6bbc49b0aaea2f48..1a7e3179d53951514af2108390943069670de037 100644 (file)
@@ -286,7 +286,7 @@ LabelSequence::toRawText(bool omit_final_dot) const {
     // use for integrity check
     unsigned int labels = getLabelCount();
     // init with an impossible value to catch error cases in the end:
-    // cppcheck complains this value is never used...
+    // cppcheck-suppress unreadVariable
     unsigned int count = Name::MAX_LABELLEN + 1;
 
     // result string: it will roughly have the same length as the wire format
@@ -341,7 +341,7 @@ LabelSequence::toText(bool omit_final_dot) const {
     // use for integrity check
     unsigned int labels = getLabelCount();
     // init with an impossible value to catch error cases in the end:
-    // cppcheck complains this value is never used...
+    // cppcheck-suppress unreadVariable
     unsigned int count = Name::MAX_LABELLEN + 1;
 
     // result string: it will roughly have the same length as the wire format
index 8d202250594b0d09f1acdf323bffd889df808f6c..a6ccac693cf5a1e3518e27f0856e74ec238749cc 100644 (file)
@@ -36,7 +36,7 @@ public:
         try {
             lock_.lock();
         } catch (...) {
-            // catch all exceptions.
+            // Catch and ignore all exceptions.
         }
     }