From: Hans Wennborg Date: Wed, 19 Jul 2017 15:06:31 +0000 (+0000) Subject: Defeat another -Wunused-but-set-variable warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56819a89bd36741cb1700763dd07b3d18aa601b3;p=llvm Defeat another -Wunused-but-set-variable warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308484 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/examples/ParallelJIT/ParallelJIT.cpp b/examples/ParallelJIT/ParallelJIT.cpp index f1932d2471c..ff44375e392 100644 --- a/examples/ParallelJIT/ParallelJIT.cpp +++ b/examples/ParallelJIT/ParallelJIT.cpp @@ -145,6 +145,7 @@ public: waitFor = 0; int result = pthread_cond_init( &condition, nullptr ); + (void)result; assert( result == 0 ); result = pthread_mutex_init( &mutex, nullptr );