Skip to content

Commit

Permalink
fix: add missing thread_local specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Oct 15, 2023
1 parent b45f5b4 commit 931323d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<
Expand Down

0 comments on commit 931323d

Please sign in to comment.