diff options
author | Howard Hinnant <hhinnant@apple.com> | 2013-09-21 21:26:37 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2013-09-21 21:26:37 +0000 |
commit | 12bfc4fef1275a41e48b2868ffdc6dfd7717341a (patch) | |
tree | 9e36b929c98516a42fb8096034a0c6c761b67233 /libcxx/src | |
parent | 6c6ddabf7bde028e11cfa71e1a1097c381a41730 (diff) | |
download | bcm5719-llvm-12bfc4fef1275a41e48b2868ffdc6dfd7717341a.tar.gz bcm5719-llvm-12bfc4fef1275a41e48b2868ffdc6dfd7717341a.zip |
Peter Collingbourne: Fix warnings when compiling with -DNDEBUG.
llvm-svn: 191148
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/mutex.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/src/mutex.cpp b/libcxx/src/mutex.cpp index 42195aa8064..07678978a67 100644 --- a/libcxx/src/mutex.cpp +++ b/libcxx/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); } |