[libcxx] r191148 - Peter Collingbourne: Fix warnings when compiling with -DNDEBUG.

Howard Hinnant hhinnant at apple.com
Sat Sep 21 14:26:37 PDT 2013


Author: hhinnant
Date: Sat Sep 21 16:26:37 2013
New Revision: 191148

URL: http://llvm.org/viewvc/llvm-project?rev=191148&view=rev
Log:
Peter Collingbourne:  Fix warnings when compiling with -DNDEBUG.

Modified:
    libcxx/trunk/src/mutex.cpp

Modified: libcxx/trunk/src/mutex.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/mutex.cpp?rev=191148&r1=191147&r2=191148&view=diff
==============================================================================
--- libcxx/trunk/src/mutex.cpp (original)
+++ libcxx/trunk/src/mutex.cpp Sat Sep 21 16:26:37 2013
@@ -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);
 }
 





More information about the cfe-commits mailing list