[PATCH] Fix warnings when compiling with -DNDEBUG
Howard Hinnant
howard.hinnant at gmail.com
Sat Sep 21 14:29:47 PDT 2013
Committed revision 191148.
Thanks,
Howard
On Sep 17, 2013, at 10:10 PM, Peter Collingbourne <peter at pcc.me.uk> wrote:
> 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);
> }
> <D1704.1.patch>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list