Peter Collingbourne: Fix warnings when compiling with -DNDEBUG.
llvm-svn: 191148
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 12bfc4fef1275a41e48b2868ffdc6dfd7717341a
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 @@
mutex::unlock() _NOEXCEPT
{
int ec = pthread_mutex_unlock(&__m_);
+ (void)ec;
assert(ec == 0);
}
@@ -79,6 +80,7 @@
recursive_mutex::~recursive_mutex()
{
int e = pthread_mutex_destroy(&__m_);
+ (void)e;
assert(e == 0);
}
@@ -94,6 +96,7 @@
recursive_mutex::unlock() _NOEXCEPT
{
int e = pthread_mutex_unlock(&__m_);
+ (void)e;
assert(e == 0);
}