From 931323df212c46e3a01b743d761c6ab8dc9f0d09 Mon Sep 17 00:00:00 2001 From: Sergiu Deitsch Date: Sun, 15 Oct 2023 18:47:39 +0200 Subject: [PATCH] fix: add missing thread_local specifier --- src/logging.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logging.cc b/src/logging.cc index a364e4f1b..8d90e2b83 100644 --- a/src/logging.cc +++ b/src/logging.cc @@ -1560,7 +1560,7 @@ static thread_local bool thread_data_available = true; #if defined(__cpp_lib_byte) && __cpp_lib_byte >= 201603L // std::aligned_storage is deprecated in C++23 -alignas(LogMessage::LogMessageData) static std::byte +alignas(LogMessage::LogMessageData) static thread_local std::byte thread_msg_data[sizeof(LogMessage::LogMessageData)]; #else // !(defined(__cpp_lib_byte) && __cpp_lib_byte >= 201603L) static thread_local std::aligned_storage<