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 | 05897c8f2624a20a5fefcd57273583c5a618b12a (patch) | |
tree | e92a6b54e26f3406a77cdf804a9138a6b6e92c36 /lib/System | |
parent | 10d3191cf1cb02e52e595eeac9d8bc353113e8f0 (diff) | |
download | llvm-05897c8f2624a20a5fefcd57273583c5a618b12a.tar.gz llvm-05897c8f2624a20a5fefcd57273583c5a618b12a.tar.bz2 llvm-05897c8f2624a20a5fefcd57273583c5a618b12a.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117262 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-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 b13c119c4e..e7e3cb7ce1 100644 --- a/lib/System/Win32/ThreadLocal.inc +++ b/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() { |