Fix warnings about an variable only used in asserts.
authorAhmed Charles <ahmedcharles@gmail.com>
Thu, 6 Mar 2014 06:35:46 +0000 (06:35 +0000)
committerAhmed Charles <ahmedcharles@gmail.com>
Thu, 6 Mar 2014 06:35:46 +0000 (06:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203089 91177308-0d34-0410-b5e6-96231b3b80d8

examples/ParallelJIT/ParallelJIT.cpp

index 64a388695ff2d136ed2cb24daa3c3eb07498e3be..2aa63d91ffb364692c4c50ef51af2660584efab6 100644 (file)
@@ -139,6 +139,7 @@ public:
   ~WaitForThreads()
   {
     int result = pthread_cond_destroy( &condition );
+    (void)result;
     assert( result == 0 );
 
     result = pthread_mutex_destroy( &mutex );
@@ -149,6 +150,7 @@ public:
   void block()
   {
     int result = pthread_mutex_lock( &mutex );
+    (void)result;
     assert( result == 0 );
     n ++;
     //~ std::cout << "block() n " << n << " waitFor " << waitFor << std::endl;
@@ -178,6 +180,7 @@ public:
   void releaseThreads( size_t num )
   {
     int result = pthread_mutex_lock( &mutex );
+    (void)result;
     assert( result == 0 );
 
     if ( n >= num ) {