Created attachment 212639 [details] patch telegram-desktop fails to build on head after the update to telegram 10. I created a patch to make it build. The patch to the bundled rapidjson in the rlottie third party library comes from upstream: https://github.com/Tencent/rapidjson/commit/2661a17c7eaede8c881e7455f5a66fd593ed8633#diff-4a56fc9353bac10cf2f51e22e38e3b2a The patch to the lib_base/base/thread_safe_wrap.h file I created. AFAIK it should be a NOP for previous clang versions which silently apply the same cast, while clang 10 is stricter and casts a warning.
Comment on attachment 212639 [details] patch Approved by: portmgr (blanket: build/run fix)
A commit references this bug: Author: madpilot Date: Mon Mar 23 12:43:40 UTC 2020 New revision: 528972 URL: https://svnweb.freebsd.org/changeset/ports/528972 Log: Fix build with clang 10 PR: 245004 Obtained from: https://github.com/Tencent/rapidjson/commit/2661a17c7eaede8c881e7455f5a66fd593ed8633#diff-4a56fc9353bac10cf2f51e22e38e3b2a (part) Approved by: portmgr (blanket) Changes: head/net-im/telegram-desktop/files/patch-Telegram_ThirdParty_rlottie_src_lottie_rapidjson_document.h head/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_thread__safe__wrap.h
Committed.