diff --git a/tests/ExtraTests/X37-Multithreading.cpp b/tests/ExtraTests/X37-Multithreading.cpp index 953e8c30..eb338908 100644 --- a/tests/ExtraTests/X37-Multithreading.cpp +++ b/tests/ExtraTests/X37-Multithreading.cpp @@ -15,8 +15,8 @@ TEST_CASE( "ThreadAssertionTest", "[Multithreading]" ) { - std::atomic_bool should_stop = false; SECTION( "Basic" ) { + std::atomic_bool should_stop{false}; std::thread a([&should_stop] () { while (!should_stop) { FAIL_CHECK(false);