Peter Collingbourne: Fix warnings when compiling with -DNDEBUG.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@191148 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant 2013-09-21 21:26:37 +00:00
parent de589f2f8f
commit fc910cb9a0

View File

@ -42,6 +42,7 @@ void
mutex::unlock() _NOEXCEPT mutex::unlock() _NOEXCEPT
{ {
int ec = pthread_mutex_unlock(&__m_); int ec = pthread_mutex_unlock(&__m_);
(void)ec;
assert(ec == 0); assert(ec == 0);
} }
@ -79,6 +80,7 @@ fail:
recursive_mutex::~recursive_mutex() recursive_mutex::~recursive_mutex()
{ {
int e = pthread_mutex_destroy(&__m_); int e = pthread_mutex_destroy(&__m_);
(void)e;
assert(e == 0); assert(e == 0);
} }
@ -94,6 +96,7 @@ void
recursive_mutex::unlock() _NOEXCEPT recursive_mutex::unlock() _NOEXCEPT
{ {
int e = pthread_mutex_unlock(&__m_); int e = pthread_mutex_unlock(&__m_);
(void)e;
assert(e == 0); assert(e == 0);
} }