diff options
author | dim <dim@FreeBSD.org> | 2014-01-29 19:30:27 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-01-29 19:30:27 +0000 |
commit | c3e10da3dc0f616b78ccf85206fdcf4c92f8ac85 (patch) | |
tree | 5812a629bd48b0968dee7411809c6a6a19680390 /src/mutex.cpp | |
parent | 30a0ccc9e6a2233c7d9f03028880be3e205fd7d1 (diff) | |
download | FreeBSD-src-c3e10da3dc0f616b78ccf85206fdcf4c92f8ac85.zip FreeBSD-src-c3e10da3dc0f616b78ccf85206fdcf4c92f8ac85.tar.gz |
Vendor import of libc++ tags/RELEASE_34/final r197960:
https://llvm.org/svn/llvm-project/libcxx/tags/RELEASE_34/final@197960
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 42195aa..0767897 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); } |