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 | ffea0abe813bb6d0355f5adb07f4d08a2d56a99e (patch) | |
| tree | 5e70ec34f738f46ca3bb85b961de98373c655ba8 /llvm/lib/System/Win32/ThreadLocal.inc | |
| parent | d4ce0a1597d63ca14df8c0e3a86114614c20c993 (diff) | |
| download | bcm5719-llvm-ffea0abe813bb6d0355f5adb07f4d08a2d56a99e.tar.gz bcm5719-llvm-ffea0abe813bb6d0355f5adb07f4d08a2d56a99e.zip | |
Add ATTRIBUTE_UNUSED for -Asserts.
llvm-svn: 116909
Diffstat (limited to 'llvm/lib/System/Win32/ThreadLocal.inc')
| -rw-r--r-- | llvm/lib/System/Win32/ThreadLocal.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/System/Win32/ThreadLocal.inc b/llvm/lib/System/Win32/ThreadLocal.inc index e7e3cb7ce11..b13c119c4e6 100644 --- a/llvm/lib/System/Win32/ThreadLocal.inc +++ b/llvm/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() { |

