<br><br><div class="gmail_quote">On Thu, Mar 28, 2013 at 4:00 PM, Howard Hinnant <span dir="ltr"><<a href="mailto:hhinnant@apple.com" target="_blank">hhinnant@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: hhinnant<br>
Date: Thu Mar 28 10:00:04 2013<br>
New Revision: 178237<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=178237&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=178237&view=rev</a><br>
Log:<br>
Add missing #ifndef _LIBCPP_NO_EXCEPTIONS around throw in include/thread.<br>
<br>
Modified:<br>
    libcxx/trunk/include/thread<br>
<br>
Modified: libcxx/trunk/include/thread<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/thread?rev=178237&r1=178236&r2=178237&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/thread?rev=178237&r1=178236&r2=178237&view=diff</a><br>

==============================================================================<br>
--- libcxx/trunk/include/thread (original)<br>
+++ libcxx/trunk/include/thread Thu Mar 28 10:00:04 2013<br>
@@ -144,9 +144,11 @@ template <class _Tp><br>
 __thread_specific_ptr<_Tp>::__thread_specific_ptr()<br>
 {<br>
     int __ec = pthread_key_create(&__key_, &__thread_specific_ptr::__at_thread_exit);<br>
+#ifndef _LIBCPP_NO_EXCEPTIONS<br>
     if (__ec)<br>
         throw system_error(error_code(__ec, system_category()),<br>
                            "__thread_specific_ptr construction failed");<br>
+#endif<br>
 }<br>
<br></blockquote><div>I don't know if you typically worry about warnings, but "__ec" is now unused when _LIBCPP_NO_EXCEPTIONS is defined.<br><br>-- Matthieu<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

 template <class _Tp><br>
<br> 
<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br>