diff --git a/rpcs3/util/logs.cpp b/rpcs3/util/logs.cpp index ff5b4490b7..4b3c505a96 100644 --- a/rpcs3/util/logs.cpp +++ b/rpcs3/util/logs.cpp @@ -397,14 +397,14 @@ void logs::message::broadcast(const char* fmt, const fmt_type_info* sup, ...) co g_tls_log_control(fmt, 0); // Get text, extract va_args - constinit thread_local std::unique_ptr text_; - constinit thread_local std::unique_ptr> args_; + constinit thread_local std::unique_ptr text(); + constinit thread_local std::unique_ptr> args_(); if (!text_) text_ = std::make_unique(); if (!args_) args_ = std::make_unique>(); - auto& text = *text_.get(); - auto& args = *args_.get(); + auto& text = *text_; + auto& args = *args_; static constexpr fmt_type_info empty_sup{};