summaryrefslogtreecommitdiffstats
path: root/llvm/examples
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-02-20 00:02:49 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-02-20 00:02:49 +0000
commit3bb7d41a35f2476a9aa08043d0c06a5dd10f877e (patch)
tree50943721bdd712b6eb768964b7b6e2e11bb4088a /llvm/examples
parent0d887dd0b905da589c75664430e5ad7eb033b512 (diff)
downloadbcm5719-llvm-3bb7d41a35f2476a9aa08043d0c06a5dd10f877e.tar.gz
bcm5719-llvm-3bb7d41a35f2476a9aa08043d0c06a5dd10f877e.zip
Switch to a more idiomatic way of silencing unused variable warnings in
release builds. Silences clang's -Wself-assign. llvm-svn: 150942
Diffstat (limited to 'llvm/examples')
-rw-r--r--llvm/examples/ParallelJIT/ParallelJIT.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/examples/ParallelJIT/ParallelJIT.cpp b/llvm/examples/ParallelJIT/ParallelJIT.cpp
index 3e483275edb..305cf1dde06 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;
OpenPOWER on IntegriCloud