diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-02-20 00:02:49 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-02-20 00:02:49 +0000 |
commit | 637f949a7fc97aa42e7360e9ed9462316b772d88 (patch) | |
tree | d3e71be936b9ce7ddda493a153d6595bc9f6c2f7 /examples | |
parent | cceb8f44a0ca3a9c57ab3a7f4947b2abda531cef (diff) | |
download | external_llvm-637f949a7fc97aa42e7360e9ed9462316b772d88.zip external_llvm-637f949a7fc97aa42e7360e9ed9462316b772d88.tar.gz external_llvm-637f949a7fc97aa42e7360e9ed9462316b772d88.tar.bz2 |
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
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ParallelJIT/ParallelJIT.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/ParallelJIT/ParallelJIT.cpp b/examples/ParallelJIT/ParallelJIT.cpp index 3e48327..305cf1d 100644 --- a/examples/ParallelJIT/ParallelJIT.cpp +++ b/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; |