mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Fix warnings about an variable only used in asserts.
llvm-svn: 203089
This commit is contained in:
parent
2878961906
commit
0f014a86bf
@ -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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user