[PATCH] Fix warnings when compiling with -DNDEBUG
Peter Collingbourne
peter at pcc.me.uk
Tue Sep 17 19:10:05 PDT 2013
http://llvm-reviews.chandlerc.com/D1704
Files:
src/mutex.cpp
Index: src/mutex.cpp
===================================================================
--- src/mutex.cpp
+++ 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);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1704.1.patch
Type: text/x-patch
Size: 539 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130917/d5337755/attachment.bin>
More information about the cfe-commits
mailing list