1
0
mirror of https://github.com/catchorg/Catch2.git synced 2025-04-27 11:25:43 +02:00

Suppress -Wexit-time-destructors

This commit is contained in:
Jeremy Rifkin 2025-01-18 10:47:32 -06:00
parent 47458af263
commit b97392b2a4
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

@ -7,8 +7,17 @@
// SPDX-License-Identifier: BSL-1.0 // SPDX-License-Identifier: BSL-1.0
#include <catch2/internal/catch_global_lock.hpp> #include <catch2/internal/catch_global_lock.hpp>
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wexit-time-destructors"
#endif
namespace Catch { namespace Catch {
std::recursive_mutex global_lock; std::recursive_mutex global_lock;
} // namespace Catch } // namespace Catch
#if defined(__clang__)
# pragma clang diagnostic pop
#endif