From 3bb7d41a35f2476a9aa08043d0c06a5dd10f877e Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Mon, 20 Feb 2012 00:02:49 +0000 Subject: [PATCH] Switch to a more idiomatic way of silencing unused variable warnings in release builds. Silences clang's -Wself-assign. llvm-svn: 150942 --- llvm/examples/ParallelJIT/ParallelJIT.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/examples/ParallelJIT/ParallelJIT.cpp b/llvm/examples/ParallelJIT/ParallelJIT.cpp index 3e483275edbb..305cf1dde06f 100644 --- a/llvm/examples/ParallelJIT/ParallelJIT.cpp +++ b/llvm/examples/ParallelJIT/ParallelJIT.cpp @@ -209,7 +209,8 @@ private: waitFor = 0; int result = pthread_cond_broadcast( &condition ); - assert(result == 0); result=result; + (void)result; + assert(result == 0); } size_t n;