Skip to content

Commit

Permalink
Fix warnings about an variable only used in asserts.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203089 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ahmedcharles committed Mar 6, 2014
1 parent 7284c97 commit 9959dff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/ParallelJIT/ParallelJIT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ class WaitForThreads
~WaitForThreads()
{
int result = pthread_cond_destroy( &condition );
(void)result;
assert( result == 0 );

result = pthread_mutex_destroy( &mutex );
Expand All @@ -149,6 +150,7 @@ class WaitForThreads
void block()
{
int result = pthread_mutex_lock( &mutex );
(void)result;
assert( result == 0 );
n ++;
//~ std::cout << "block() n " << n << " waitFor " << waitFor << std::endl;
Expand Down Expand Up @@ -178,6 +180,7 @@ class WaitForThreads
void releaseThreads( size_t num )
{
int result = pthread_mutex_lock( &mutex );
(void)result;
assert( result == 0 );

if ( n >= num ) {
Expand Down

0 comments on commit 9959dff

Please sign in to comment.