From 068f19ea39006172ee95da417c8e9d992654972d Mon Sep 17 00:00:00 2001 From: Piotr Wiercinski Date: Mon, 28 Aug 2023 12:22:34 +0200 Subject: [PATCH] wasm: Drop using deprecated function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `emscripten_main_browser_thread_id()` has been deprecated in favor of `emscripten_main_runtime_thread_id()`. Using the deprecated one generates a warning during compilation. Change-Id: I1154bd8ff78f13e6425fdc65ac39763569360da6 Reviewed-by: Qt CI Bot Reviewed-by: Morten Johan Sørvig --- src/corelib/platform/wasm/qstdweb_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/platform/wasm/qstdweb_p.h b/src/corelib/platform/wasm/qstdweb_p.h index a59cc4c81d..a7a98ca042 100644 --- a/src/corelib/platform/wasm/qstdweb_p.h +++ b/src/corelib/platform/wasm/qstdweb_p.h @@ -229,7 +229,7 @@ namespace qstdweb { T proxyCall(std::function task, emscripten::ProxyingQueue *queue) { T result; - queue->proxySync(emscripten_main_browser_thread_id(), + queue->proxySync(emscripten_main_runtime_thread_id(), [task, result = &result]() { *result = task(); }); return result; } @@ -237,7 +237,7 @@ namespace qstdweb { template<> inline void proxyCall(std::function task, emscripten::ProxyingQueue *queue) { - queue->proxySync(emscripten_main_browser_thread_id(), task); + queue->proxySync(emscripten_main_runtime_thread_id(), task); } template