aboutsummaryrefslogtreecommitdiff
path: root/llvm/examples/ParallelJIT/ParallelJIT.cpp
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
commitde14dcc24fc9ecdeef688fc0e0f1ff194d7d885c (patch)
treeb25d776a924d2d4717e5f2a6edc97f1a8f84442f /llvm/examples/ParallelJIT/ParallelJIT.cpp
parenta8ff543c280f9f2eee2fac4c5cdacd97b21ea1a1 (diff)
downloadllvm-de14dcc24fc9ecdeef688fc0e0f1ff194d7d885c.zip
llvm-de14dcc24fc9ecdeef688fc0e0f1ff194d7d885c.tar.gz
llvm-de14dcc24fc9ecdeef688fc0e0f1ff194d7d885c.tar.bz2
Fix warnings about an variable only used in asserts.
llvm-svn: 203089
Diffstat (limited to 'llvm/examples/ParallelJIT/ParallelJIT.cpp')
-rw-r--r--llvm/examples/ParallelJIT/ParallelJIT.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/examples/ParallelJIT/ParallelJIT.cpp b/llvm/examples/ParallelJIT/ParallelJIT.cpp
index 64a3886..2aa63d9 100644
--- a/llvm/examples/ParallelJIT/ParallelJIT.cpp
+++ b/llvm/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 ) {