Another test.
[oota-llvm.git] / lib / System / ThreadLocal.cpp
index f8b00d152a0c2d484bc5842101664b4c0138173b..e7054b528147189d2f02fde53de63aa793e48fd2 100644 (file)
@@ -43,13 +43,15 @@ ThreadLocalImpl::ThreadLocalImpl() : data(0) {
   pthread_key_t* key = new pthread_key_t;
   int errorcode = pthread_key_create(key, NULL);
   assert(errorcode == 0);
-  data = key;
+  (void) errorcode;
+  data = (void*)key;
 }
 
 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() {