Skip to content

Commit

Permalink
Suppress -Wexit-time-destructors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Jan 18, 2025
1 parent 47458af commit b97392b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/catch2/internal/catch_global_lock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,17 @@
// SPDX-License-Identifier: BSL-1.0
#include <catch2/internal/catch_global_lock.hpp>

#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

0 comments on commit b97392b

Please sign in to comment.