lib/System/Win32/ThreadLocal.inc: Suppress "unused" warning on -Asserts.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 19 Oct 2010 01:22:01 +0000 (01:22 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 19 Oct 2010 01:22:01 +0000 (01:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116785 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Win32/ThreadLocal.inc

index b8b933c4d29d9f8ae87bc436bb877dee4ac02a8d..e7e3cb7ce11d0279a9d8adeba6b7ae3fb5ed64f8 100644 (file)
@@ -44,6 +44,7 @@ void ThreadLocalImpl::setInstance(const void* d){
   DWORD* tls = static_cast<DWORD*>(data);
   int errorcode = TlsSetValue(*tls, const_cast<void*>(d));
   assert(errorcode != 0);
+  (void)errorcode;
 }
 
 void ThreadLocalImpl::removeInstance() {