[llvm-commits] [llvm] r74250 - /llvm/trunk/lib/System/ThreadLocal.cpp
Daniel Dunbar
daniel at zuster.org
Thu Jun 25 18:34:36 PDT 2009
Author: ddunbar
Date: Thu Jun 25 20:34:35 2009
New Revision: 74250
URL: http://llvm.org/viewvc/llvm-project?rev=74250&view=rev
Log:
Fix unused variable warnings.
Modified:
llvm/trunk/lib/System/ThreadLocal.cpp
Modified: llvm/trunk/lib/System/ThreadLocal.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/ThreadLocal.cpp?rev=74250&r1=74249&r2=74250&view=diff
==============================================================================
--- llvm/trunk/lib/System/ThreadLocal.cpp (original)
+++ llvm/trunk/lib/System/ThreadLocal.cpp Thu Jun 25 20:34:35 2009
@@ -43,6 +43,7 @@
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 @@
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 @@
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() {
More information about the llvm-commits
mailing list