diff --git a/src/catch2/internal/catch_global_lock.cpp b/src/catch2/internal/catch_global_lock.cpp index 424ead0e..3011be65 100644 --- a/src/catch2/internal/catch_global_lock.cpp +++ b/src/catch2/internal/catch_global_lock.cpp @@ -7,8 +7,17 @@ // SPDX-License-Identifier: BSL-1.0 #include +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wexit-time-destructors" +#endif + namespace Catch { std::recursive_mutex global_lock; } // namespace Catch + +#if defined(__clang__) +# pragma clang diagnostic pop +#endif