diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2014-01-29 19:30:27 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2014-01-29 19:30:27 +0000 |
commit | a5b2dbc259e289ea23fe9aebb34eba2c1dc7fefb (patch) | |
tree | 5812a629bd48b0968dee7411809c6a6a19680390 /src/mutex.cpp | |
parent | 1c9014238e909c768bf84564733b5441d5c9ea2b (diff) |
Diffstat (limited to 'src/mutex.cpp')
-rw-r--r-- | src/mutex.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mutex.cpp b/src/mutex.cpp index 42195aa806487..07678978a6788 100644 --- a/src/mutex.cpp +++ b/src/mutex.cpp @@ -42,6 +42,7 @@ void mutex::unlock() _NOEXCEPT { int ec = pthread_mutex_unlock(&__m_); + (void)ec; assert(ec == 0); } @@ -79,6 +80,7 @@ fail: recursive_mutex::~recursive_mutex() { int e = pthread_mutex_destroy(&__m_); + (void)e; assert(e == 0); } @@ -94,6 +96,7 @@ void recursive_mutex::unlock() _NOEXCEPT { int e = pthread_mutex_unlock(&__m_); + (void)e; assert(e == 0); } |