diff options
| author | Duncan Sands <baldrick@free.fr> | 2010-10-25 13:10:03 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2010-10-25 13:10:03 +0000 |
| commit | 08745f548356b307f8bf0bb4e13128050ec6847e (patch) | |
| tree | f9222a18ca0aea1304d9dd12a1d9f83079b27943 /llvm/lib/System | |
| parent | 1be7dac8fd8b322fa95d43add17f3d04cd77f5da (diff) | |
| download | bcm5719-llvm-08745f548356b307f8bf0bb4e13128050ec6847e.tar.gz bcm5719-llvm-08745f548356b307f8bf0bb4e13128050ec6847e.zip | |
ATTRIBUTE_UNUSED has been renamed to LLVM_ATTRIBUTE_UNUSED.
Rather than rename this instance, use the cast-to-void idiom
instead. This will hopefully fix the windows buildbots.
llvm-svn: 117262
Diffstat (limited to 'llvm/lib/System')
| -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 b13c119c4e6..e7e3cb7ce11 100644 --- a/llvm/lib/System/Win32/ThreadLocal.inc +++ b/llvm/lib/System/Win32/ThreadLocal.inc @@ -17,7 +17,6 @@ //===----------------------------------------------------------------------===// #include "Win32.h" -#include "llvm/Support/Compiler.h" #include "llvm/System/ThreadLocal.h" namespace llvm { @@ -43,8 +42,9 @@ const void* ThreadLocalImpl::getInstance() { void ThreadLocalImpl::setInstance(const void* d){ DWORD* tls = static_cast<DWORD*>(data); - int ATTRIBUTE_UNUSED errorcode = TlsSetValue(*tls, const_cast<void*>(d)); + int errorcode = TlsSetValue(*tls, const_cast<void*>(d)); assert(errorcode != 0); + (void)errorcode; } void ThreadLocalImpl::removeInstance() { |

