[libcxx-commits] [libcxx] r359275 - Fix r359229 which tried to fix r359159...

Chandler Carruth via libcxx-commits libcxx-commits at lists.llvm.org
Thu Apr 25 22:04:34 PDT 2019


Author: chandlerc
Date: Thu Apr 25 22:04:33 2019
New Revision: 359275

URL: http://llvm.org/viewvc/llvm-project?rev=359275&view=rev
Log:
Fix r359229 which tried to fix r359159...

When r359229 added noexcept to the declaration of `~mutex`, it didn't
add it to the definition which caused -Wimplicit-exception-spec-mismatch
to fire. This just adapts the definition to agree with the declaration.

Modified:
    libcxx/trunk/src/mutex.cpp

Modified: libcxx/trunk/src/mutex.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/mutex.cpp?rev=359275&r1=359274&r2=359275&view=diff
==============================================================================
--- libcxx/trunk/src/mutex.cpp (original)
+++ libcxx/trunk/src/mutex.cpp Thu Apr 25 22:04:33 2019
@@ -19,7 +19,7 @@ const defer_lock_t  defer_lock = {};
 const try_to_lock_t try_to_lock = {};
 const adopt_lock_t  adopt_lock = {};
 
-mutex::~mutex()
+mutex::~mutex() _NOEXCEPT
 {
     __libcpp_mutex_destroy(&__m_);
 }




More information about the libcxx-commits mailing list