diff --git a/src/catch2/internal/catch_thread_support.hpp b/src/catch2/internal/catch_thread_support.hpp index c15980b7..69e50c06 100644 --- a/src/catch2/internal/catch_thread_support.hpp +++ b/src/catch2/internal/catch_thread_support.hpp @@ -23,10 +23,10 @@ namespace Catch { using Mutex = std::mutex; using LockGuard = std::lock_guard; struct AtomicCounts { - std::atomic passed = 0; - std::atomic failed = 0; - std::atomic failedButOk = 0; - std::atomic skipped = 0; + std::atomic passed{ 0 }; + std::atomic failed{ 0 }; + std::atomic failedButOk{ 0 }; + std::atomic skipped{ 0 }; }; #else // ^^ Use actual mutex, lock and atomics // vv Dummy implementations for single-thread performance