<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Or better yet, use the ATTRIBUTE_UNUSED attribute in llvm/Support/Compiler.h.<div><br></div><div>-bw</div><div><br><div><div>On Oct 19, 2010, at 9:16 AM, Jim Grosbach wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Can you add a comment saying why that line is necessary? Otherwise some well meaning person may remove the "unusued" statement.<br><br>-Jim<br><br>On Oct 18, 2010, at 6:22 PM, NAKAMURA Takumi wrote:<br><br><blockquote type="cite">Author: chapuni<br></blockquote><blockquote type="cite">Date: Mon Oct 18 20:22:01 2010<br></blockquote><blockquote type="cite">New Revision: 116785<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">URL: <a href="http://llvm.org/viewvc/llvm-project?rev=116785&view=rev">http://llvm.org/viewvc/llvm-project?rev=116785&view=rev</a><br></blockquote><blockquote type="cite">Log:<br></blockquote><blockquote type="cite">lib/System/Win32/ThreadLocal.inc: Suppress "unused" warning on -Asserts.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Modified:<br></blockquote><blockquote type="cite">   llvm/trunk/lib/System/Win32/ThreadLocal.inc<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Modified: llvm/trunk/lib/System/Win32/ThreadLocal.inc<br></blockquote><blockquote type="cite">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Win32/ThreadLocal.inc?rev=116785&r1=116784&r2=116785&view=diff">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Win32/ThreadLocal.inc?rev=116785&r1=116784&r2=116785&view=diff</a><br></blockquote><blockquote type="cite">==============================================================================<br></blockquote><blockquote type="cite">--- llvm/trunk/lib/System/Win32/ThreadLocal.inc (original)<br></blockquote><blockquote type="cite">+++ llvm/trunk/lib/System/Win32/ThreadLocal.inc Mon Oct 18 20:22:01 2010<br></blockquote><blockquote type="cite">@@ -44,6 +44,7 @@<br></blockquote><blockquote type="cite">  DWORD* tls = static_cast<DWORD*>(data);<br></blockquote><blockquote type="cite">  int errorcode = TlsSetValue(*tls, const_cast<void*>(d));<br></blockquote><blockquote type="cite">  assert(errorcode != 0);<br></blockquote><blockquote type="cite">+  (void)errorcode;<br></blockquote><blockquote type="cite">}<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">void ThreadLocalImpl::removeInstance() {<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">llvm-commits mailing list<br></blockquote><blockquote type="cite"><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br></blockquote><blockquote type="cite"><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br></blockquote><br><br>_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits<br></div></blockquote></div><br></div></body></html>