diff --git a/tdactor/td/actor/impl/ConcurrentScheduler.cpp b/tdactor/td/actor/impl/ConcurrentScheduler.cpp index fe25f1a78..47593db90 100644 --- a/tdactor/td/actor/impl/ConcurrentScheduler.cpp +++ b/tdactor/td/actor/impl/ConcurrentScheduler.cpp @@ -25,9 +25,12 @@ void ConcurrentScheduler::init(int32 threads_n) { threads_n++; std::vector>> outbound(threads_n); for (int32 i = 0; i < threads_n; i++) { +#if TD_THREAD_UNSUPPORTED || TD_EVENTFD_UNSUPPORTED +#else auto queue = std::make_shared>(); queue->init(); outbound[i] = queue; +#endif } schedulers_.resize(threads_n); diff --git a/tdutils/td/utils/tl_parsers.cpp b/tdutils/td/utils/tl_parsers.cpp index 65ff83084..7a44f3f8c 100644 --- a/tdutils/td/utils/tl_parsers.cpp +++ b/tdutils/td/utils/tl_parsers.cpp @@ -8,7 +8,7 @@ namespace td { -const unsigned char TlParser::empty_data[sizeof(UInt256)] = {}; // static zero-initialized +alignas(128) const unsigned char TlParser::empty_data[sizeof(UInt256)] = {}; // static zero-initialized void TlParser::set_error(const string &error_message) { if (error.empty()) {