Pārlūkot izejas kodu

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.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@359275 91177308-0d34-0410-b5e6-96231b3b80d8
Chandler Carruth 6 gadi atpakaļ
vecāks
revīzija
5badcdb281
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/mutex.cpp

+ 1 - 1
src/mutex.cpp

@@ -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_);
 }