From 5c0db76cf262bec095c6b52ba0aa6e095f9f8298 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116785 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Win32/ThreadLocal.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/System/Win32/ThreadLocal.inc b/lib/System/Win32/ThreadLocal.inc index b8b933c4d29..e7e3cb7ce11 100644 --- a/lib/System/Win32/ThreadLocal.inc +++ b/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() {