[llvm] r308484 - Defeat another -Wunused-but-set-variable warning
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 08:06:31 PDT 2017
Author: hans
Date: Wed Jul 19 08:06:31 2017
New Revision: 308484
URL: http://llvm.org/viewvc/llvm-project?rev=308484&view=rev
Log:
Defeat another -Wunused-but-set-variable warning
Modified:
llvm/trunk/examples/ParallelJIT/ParallelJIT.cpp
Modified: llvm/trunk/examples/ParallelJIT/ParallelJIT.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/ParallelJIT/ParallelJIT.cpp?rev=308484&r1=308483&r2=308484&view=diff
==============================================================================
--- llvm/trunk/examples/ParallelJIT/ParallelJIT.cpp (original)
+++ llvm/trunk/examples/ParallelJIT/ParallelJIT.cpp Wed Jul 19 08:06:31 2017
@@ -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 );
More information about the llvm-commits
mailing list