[llvm-commits] [llvm] r117262 - /llvm/trunk/lib/System/Win32/ThreadLocal.inc
Duncan Sands
baldrick at free.fr
Mon Oct 25 06:10:04 PDT 2010
Author: baldrick
Date: Mon Oct 25 08:10:03 2010
New Revision: 117262
URL: http://llvm.org/viewvc/llvm-project?rev=117262&view=rev
Log:
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.
Modified:
llvm/trunk/lib/System/Win32/ThreadLocal.inc
Modified: llvm/trunk/lib/System/Win32/ThreadLocal.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Win32/ThreadLocal.inc?rev=117262&r1=117261&r2=117262&view=diff
==============================================================================
--- llvm/trunk/lib/System/Win32/ThreadLocal.inc (original)
+++ llvm/trunk/lib/System/Win32/ThreadLocal.inc Mon Oct 25 08:10:03 2010
@@ -17,7 +17,6 @@
//===----------------------------------------------------------------------===//
#include "Win32.h"
-#include "llvm/Support/Compiler.h"
#include "llvm/System/ThreadLocal.h"
namespace llvm {
@@ -43,8 +42,9 @@
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() {
More information about the llvm-commits
mailing list