Skip to content

Commit

Permalink
ATTRIBUTE_UNUSED has been renamed to LLVM_ATTRIBUTE_UNUSED.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
CunningBaldrick committed Oct 25, 2010
1 parent 10d3191 commit 05897c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/System/Win32/ThreadLocal.inc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
//===----------------------------------------------------------------------===//

#include "Win32.h"
#include "llvm/Support/Compiler.h"
#include "llvm/System/ThreadLocal.h"

namespace llvm {
Expand All @@ -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() {
Expand Down

0 comments on commit 05897c8

Please sign in to comment.