From fc910cb9a0b5a1ecd8b1f4c1c10ca54e2e433aa7 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 21 Sep 2013 21:26:37 +0000 Subject: [PATCH] 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 --- src/mutex.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mutex.cpp b/src/mutex.cpp index 42195aa8..07678978 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); }