[llvm] r203089 - Fix warnings about an variable only used in asserts.

Ahmed Charles ahmedcharles at gmail.com
Wed Mar 5 22:35:46 PST 2014


Author: ace2001ac
Date: Thu Mar  6 00:35:46 2014
New Revision: 203089

URL: http://llvm.org/viewvc/llvm-project?rev=203089&view=rev
Log:
Fix warnings about an variable only used in asserts.

Modified:
    llvm/trunk/examples/ParallelJIT/ParallelJIT.cpp

Modified: llvm/trunk/examples/ParallelJIT/ParallelJIT.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/ParallelJIT/ParallelJIT.cpp?rev=203089&r1=203088&r2=203089&view=diff
==============================================================================
--- llvm/trunk/examples/ParallelJIT/ParallelJIT.cpp (original)
+++ llvm/trunk/examples/ParallelJIT/ParallelJIT.cpp Thu Mar  6 00:35:46 2014
@@ -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 ) {





More information about the llvm-commits mailing list