File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,9 +32,12 @@ class UnixDomainSocketImpl : public boost::enable_shared_from_this<UnixDomainSoc
3232 // / @brief Destructor.
3333 // /
3434 // / Closes the socket.
35- // cppcheck-suppress throwInNoexceptFunction
3635 ~UnixDomainSocketImpl () {
37- close ();
36+ try {
37+ close ();
38+ } catch (...) {
39+ // catch all exceptions.
40+ }
3841 }
3942
4043 // / @brief Asynchronously connects to an endpoint.
Original file line number Diff line number Diff line change @@ -32,9 +32,12 @@ class UnlockGuard : public boost::noncopyable {
3232 // / @brief Destructor.
3333 // /
3434 // / Lock mutex object on destructor.
35- // cppcheck-suppress throwInNoexceptFunction
3635 ~UnlockGuard () {
37- lock_.lock ();
36+ try {
37+ lock_.lock ();
38+ } catch (...) {
39+ // catch all exceptions.
40+ }
3841 }
3942
4043private:
You can’t perform that action at this time.
0 commit comments