summaryrefslogtreecommitdiff
path: root/examples/ParallelJIT
diff options
context:
space:
mode:
authorAhmed Charles <ahmedcharles@gmail.com>2014-03-06 06:35:46 +0000
committerAhmed Charles <ahmedcharles@gmail.com>2014-03-06 06:35:46 +0000
commit9959dffd517b15b22f07db3985ea50501c688418 (patch)
treeb4c8694a0c5451b65dff3fa2f3e9ef9986ad5791 /examples/ParallelJIT
parent7284c9795aa27b079a71d0419f3084c7812688f8 (diff)
downloadllvm-9959dffd517b15b22f07db3985ea50501c688418.tar.gz
llvm-9959dffd517b15b22f07db3985ea50501c688418.tar.bz2
llvm-9959dffd517b15b22f07db3985ea50501c688418.tar.xz
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
Diffstat (limited to 'examples/ParallelJIT')
-rw-r--r--examples/ParallelJIT/ParallelJIT.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/ParallelJIT/ParallelJIT.cpp b/examples/ParallelJIT/ParallelJIT.cpp
index 64a388695f..2aa63d91ff 100644
--- a/examples/ParallelJIT/ParallelJIT.cpp
+++ b/examples/ParallelJIT/ParallelJIT.cpp
@@ -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 ) {