Permalink
Browse files

Switch to a more idiomatic way of silencing unused variable warnings in

release builds. Silences clang's -Wself-assign.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150942 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information...
1 parent cceb8f4 commit 637f949a7fc97aa42e7360e9ed9462316b772d88 @chandlerc chandlerc committed Feb 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 examples/ParallelJIT/ParallelJIT.cpp
@@ -209,7 +209,8 @@ class WaitForThreads
waitFor = 0;
int result = pthread_cond_broadcast( &condition );
- assert(result == 0); result=result;
+ (void)result;
+ assert(result == 0);
}
size_t n;

0 comments on commit 637f949

Please sign in to comment.