From b97392b2a4449357b098e325a93ee89c8b0814d8 Mon Sep 17 00:00:00 2001 From: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> Date: Sat, 18 Jan 2025 10:47:32 -0600 Subject: [PATCH] Suppress -Wexit-time-destructors --- src/catch2/internal/catch_global_lock.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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