diff --git a/td/telegram/MessagesManager.h b/td/telegram/MessagesManager.h index 1aaa8b32..149f8acf 100644 --- a/td/telegram/MessagesManager.h +++ b/td/telegram/MessagesManager.h @@ -1244,7 +1244,7 @@ class MessagesManager : public Actor { }; struct PendingSecretMessage { - enum class Type { NewMessage, DeleteMessages, DeleteHistory }; + enum class Type : int32 { NewMessage, DeleteMessages, DeleteHistory }; Type type = Type::NewMessage; // for NewMessage diff --git a/tdactor/test/actors_bugs.cpp b/tdactor/test/actors_bugs.cpp index bc06652a..54377070 100644 --- a/tdactor/test/actors_bugs.cpp +++ b/tdactor/test/actors_bugs.cpp @@ -4,6 +4,8 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // +#include "td/utils/common.h" +#include "td/utils/logging.h" #include "td/utils/Random.h" #include "td/utils/tests.h" diff --git a/tdutils/td/utils/port/detail/ThreadPthread.cpp b/tdutils/td/utils/port/detail/ThreadPthread.cpp index c2cce0d1..c712cef0 100644 --- a/tdutils/td/utils/port/detail/ThreadPthread.cpp +++ b/tdutils/td/utils/port/detail/ThreadPthread.cpp @@ -79,7 +79,8 @@ void ThreadPthread::detach() { } } -int ThreadPthread::do_pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg) { +int ThreadPthread::do_pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), + void *arg) { return pthread_create(thread, attr, start_routine, arg); }