mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-27 05:04:44 +03:00
Fixed warnings in deployment build style on OS X.
This commit is contained in:
parent
14ebaf0515
commit
0df2e9ce6a
@ -179,6 +179,7 @@ CArchMultithreadPosix::newCondVar()
|
|||||||
{
|
{
|
||||||
CArchCondImpl* cond = new CArchCondImpl;
|
CArchCondImpl* cond = new CArchCondImpl;
|
||||||
int status = pthread_cond_init(&cond->m_cond, NULL);
|
int status = pthread_cond_init(&cond->m_cond, NULL);
|
||||||
|
(void)status;
|
||||||
assert(status == 0);
|
assert(status == 0);
|
||||||
return cond;
|
return cond;
|
||||||
}
|
}
|
||||||
@ -187,6 +188,7 @@ void
|
|||||||
CArchMultithreadPosix::closeCondVar(CArchCond cond)
|
CArchMultithreadPosix::closeCondVar(CArchCond cond)
|
||||||
{
|
{
|
||||||
int status = pthread_cond_destroy(&cond->m_cond);
|
int status = pthread_cond_destroy(&cond->m_cond);
|
||||||
|
(void)status;
|
||||||
assert(status == 0);
|
assert(status == 0);
|
||||||
delete cond;
|
delete cond;
|
||||||
}
|
}
|
||||||
@ -195,6 +197,7 @@ void
|
|||||||
CArchMultithreadPosix::signalCondVar(CArchCond cond)
|
CArchMultithreadPosix::signalCondVar(CArchCond cond)
|
||||||
{
|
{
|
||||||
int status = pthread_cond_signal(&cond->m_cond);
|
int status = pthread_cond_signal(&cond->m_cond);
|
||||||
|
(void)status;
|
||||||
assert(status == 0);
|
assert(status == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -202,6 +205,7 @@ void
|
|||||||
CArchMultithreadPosix::broadcastCondVar(CArchCond cond)
|
CArchMultithreadPosix::broadcastCondVar(CArchCond cond)
|
||||||
{
|
{
|
||||||
int status = pthread_cond_broadcast(&cond->m_cond);
|
int status = pthread_cond_broadcast(&cond->m_cond);
|
||||||
|
(void)status;
|
||||||
assert(status == 0);
|
assert(status == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -309,6 +313,7 @@ void
|
|||||||
CArchMultithreadPosix::closeMutex(CArchMutex mutex)
|
CArchMultithreadPosix::closeMutex(CArchMutex mutex)
|
||||||
{
|
{
|
||||||
int status = pthread_mutex_destroy(&mutex->m_mutex);
|
int status = pthread_mutex_destroy(&mutex->m_mutex);
|
||||||
|
(void)status;
|
||||||
assert(status == 0);
|
assert(status == 0);
|
||||||
delete mutex;
|
delete mutex;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user