From 898fbd82a5effff2d22767c3738de368bfed069d Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 19 Oct 2010 01:22:01 +0000 Subject: [PATCH] lib/System/Win32/ThreadLocal.inc: Suppress "unused" warning on -Asserts. llvm-svn: 116785 --- llvm/lib/System/Win32/ThreadLocal.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/System/Win32/ThreadLocal.inc b/llvm/lib/System/Win32/ThreadLocal.inc index b8b933c4d29d..e7e3cb7ce11d 100644 --- a/llvm/lib/System/Win32/ThreadLocal.inc +++ b/llvm/lib/System/Win32/ThreadLocal.inc @@ -44,6 +44,7 @@ void ThreadLocalImpl::setInstance(const void* d){ DWORD* tls = static_cast(data); int errorcode = TlsSetValue(*tls, const_cast(d)); assert(errorcode != 0); + (void)errorcode; } void ThreadLocalImpl::removeInstance() {