mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
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
This commit is contained in:
parent
7284c9795a
commit
9959dffd51
@ -139,6 +139,7 @@ public:
|
|||||||
~WaitForThreads()
|
~WaitForThreads()
|
||||||
{
|
{
|
||||||
int result = pthread_cond_destroy( &condition );
|
int result = pthread_cond_destroy( &condition );
|
||||||
|
(void)result;
|
||||||
assert( result == 0 );
|
assert( result == 0 );
|
||||||
|
|
||||||
result = pthread_mutex_destroy( &mutex );
|
result = pthread_mutex_destroy( &mutex );
|
||||||
@ -149,6 +150,7 @@ public:
|
|||||||
void block()
|
void block()
|
||||||
{
|
{
|
||||||
int result = pthread_mutex_lock( &mutex );
|
int result = pthread_mutex_lock( &mutex );
|
||||||
|
(void)result;
|
||||||
assert( result == 0 );
|
assert( result == 0 );
|
||||||
n ++;
|
n ++;
|
||||||
//~ std::cout << "block() n " << n << " waitFor " << waitFor << std::endl;
|
//~ std::cout << "block() n " << n << " waitFor " << waitFor << std::endl;
|
||||||
@ -178,6 +180,7 @@ public:
|
|||||||
void releaseThreads( size_t num )
|
void releaseThreads( size_t num )
|
||||||
{
|
{
|
||||||
int result = pthread_mutex_lock( &mutex );
|
int result = pthread_mutex_lock( &mutex );
|
||||||
|
(void)result;
|
||||||
assert( result == 0 );
|
assert( result == 0 );
|
||||||
|
|
||||||
if ( n >= num ) {
|
if ( n >= num ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user