llvm.org GIT mirror llvm / 9959dff
Fix warnings about an variable only used in asserts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203089 91177308-0d34-0410-b5e6-96231b3b80d8 Ahmed Charles 5 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
138138 ~WaitForThreads()
139139 {
140140 int result = pthread_cond_destroy( &condition );
141 (void)result;
141142 assert( result == 0 );
142143
143144 result = pthread_mutex_destroy( &mutex );
148149 void block()
149150 {
150151 int result = pthread_mutex_lock( &mutex );
152 (void)result;
151153 assert( result == 0 );
152154 n ++;
153155 //~ std::cout << "block() n " << n << " waitFor " << waitFor << std::endl;
177179 void releaseThreads( size_t num )
178180 {
179181 int result = pthread_mutex_lock( &mutex );
182 (void)result;
180183 assert( result == 0 );
181184
182185 if ( n >= num ) {