Skip to content

Commit 9d07910

Browse files
committed
[#3991] Some improvements
1 parent 07c33bd commit 9d07910

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/lib/asiolink/unix_domain_socket.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class UnixDomainSocketImpl : public boost::enable_shared_from_this<UnixDomainSoc
3636
try {
3737
close();
3838
} catch (...) {
39-
// catch all exceptions.
39+
// Catch and ignore all exceptions.
4040
}
4141
}
4242

src/lib/dns/labelsequence.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ LabelSequence::toRawText(bool omit_final_dot) const {
286286
// use for integrity check
287287
unsigned int labels = getLabelCount();
288288
// init with an impossible value to catch error cases in the end:
289-
// cppcheck complains this value is never used...
289+
// cppcheck-suppress unreadVariable
290290
unsigned int count = Name::MAX_LABELLEN + 1;
291291

292292
// result string: it will roughly have the same length as the wire format
@@ -341,7 +341,7 @@ LabelSequence::toText(bool omit_final_dot) const {
341341
// use for integrity check
342342
unsigned int labels = getLabelCount();
343343
// init with an impossible value to catch error cases in the end:
344-
// cppcheck complains this value is never used...
344+
// cppcheck-suppress unreadVariable
345345
unsigned int count = Name::MAX_LABELLEN + 1;
346346

347347
// result string: it will roughly have the same length as the wire format

src/lib/util/unlock_guard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class UnlockGuard : public boost::noncopyable {
3636
try {
3737
lock_.lock();
3838
} catch (...) {
39-
// catch all exceptions.
39+
// Catch and ignore all exceptions.
4040
}
4141
}
4242

0 commit comments

Comments
 (0)