mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Fix unused variable warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74250 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
12cccf10a7
commit
6f8f6066fd
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user