diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-06-26 01:34:35 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-26 01:34:35 +0000 |
| commit | 212bb63866bccbd3a0683568ba5dd2c1f8f0fcff (patch) | |
| tree | 008fed7be52f1e87388de8c774d32591a26b7ab7 /lib/System | |
| parent | dcca858fd14d516f1532d7ef5bd65bedb42deb52 (diff) | |
| download | external_llvm-212bb63866bccbd3a0683568ba5dd2c1f8f0fcff.zip external_llvm-212bb63866bccbd3a0683568ba5dd2c1f8f0fcff.tar.gz external_llvm-212bb63866bccbd3a0683568ba5dd2c1f8f0fcff.tar.bz2 | |
Fix unused variable warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74250 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
| -rw-r--r-- | lib/System/ThreadLocal.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/System/ThreadLocal.cpp b/lib/System/ThreadLocal.cpp index f8b00d1..8884e79 100644 --- a/lib/System/ThreadLocal.cpp +++ b/lib/System/ThreadLocal.cpp @@ -43,6 +43,7 @@ ThreadLocalImpl::ThreadLocalImpl() : data(0) { pthread_key_t* key = new pthread_key_t; int errorcode = pthread_key_create(key, NULL); assert(errorcode == 0); + (void) errorcode; data = key; } @@ -50,6 +51,7 @@ ThreadLocalImpl::~ThreadLocalImpl() { pthread_key_t* key = static_cast<pthread_key_t*>(data); int errorcode = pthread_key_delete(*key); assert(errorcode == 0); + (void) errorcode; delete key; } @@ -57,6 +59,7 @@ void ThreadLocalImpl::setInstance(const void* d) { pthread_key_t* key = static_cast<pthread_key_t*>(data); int errorcode = pthread_setspecific(*key, d); assert(errorcode == 0); + (void) errorcode; } const void* ThreadLocalImpl::getInstance() { |
