diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-10-20 04:05:29 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-10-20 04:05:29 +0000 |
commit | f10c519249f8565259c8dc6ff315d5090bdf9449 (patch) | |
tree | 5701a779b0bd547e10b3aff1158854a8d9282d02 /lib/System/Win32/ThreadLocal.inc | |
parent | 65513605353c7e3ee8be6fc92892f257ad399d92 (diff) |
Add ATTRIBUTE_UNUSED for -Asserts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116909 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32/ThreadLocal.inc')
-rw-r--r-- | lib/System/Win32/ThreadLocal.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Win32/ThreadLocal.inc b/lib/System/Win32/ThreadLocal.inc index e7e3cb7ce1..b13c119c4e 100644 --- a/lib/System/Win32/ThreadLocal.inc +++ b/lib/System/Win32/ThreadLocal.inc @@ -17,6 +17,7 @@ //===----------------------------------------------------------------------===// #include "Win32.h" +#include "llvm/Support/Compiler.h" #include "llvm/System/ThreadLocal.h" namespace llvm { @@ -42,9 +43,8 @@ const void* ThreadLocalImpl::getInstance() { void ThreadLocalImpl::setInstance(const void* d){ DWORD* tls = static_cast<DWORD*>(data); - int errorcode = TlsSetValue(*tls, const_cast<void*>(d)); + int ATTRIBUTE_UNUSED errorcode = TlsSetValue(*tls, const_cast<void*>(d)); assert(errorcode != 0); - (void)errorcode; } void ThreadLocalImpl::removeInstance() { |