From 2d9462f02b31311a7a0a6c54afc5ddaf39c27c5e Mon Sep 17 00:00:00 2001 From: Joel Linn Date: Wed, 5 May 2021 13:52:11 +0200 Subject: [PATCH] [Base] Fix unitialized variable in threading test --- src/xenia/base/testing/threading_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/base/testing/threading_test.cc b/src/xenia/base/testing/threading_test.cc index ba6eda0db..e15fcc3a2 100644 --- a/src/xenia/base/testing/threading_test.cc +++ b/src/xenia/base/testing/threading_test.cc @@ -154,7 +154,7 @@ TEST_CASE("HighResolutionTimer") { // Time the actual sleep duration { const auto interval = 50ms; - std::atomic counter; + std::atomic counter(0); auto start = std::chrono::steady_clock::now(); auto cb = [&counter] { ++counter; }; auto pTimer = HighResolutionTimer::CreateRepeating(interval, cb);