From 41ed8b702a5de854e233bad4704f88236e7796c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sun, 9 Nov 2025 11:19:44 +0100 Subject: [PATCH] Fix initialization for older standards --- src/catch2/internal/catch_thread_support.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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