From 73feb5184ee1c83027a592321248ec10687fdc55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20S=C3=B8rvig?= Date: Wed, 16 Aug 2023 22:05:34 +0200 Subject: [PATCH] wasm: fix null-argument warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit That's "null passed to a callee that requires a non-null argument". Pass EMSCRIPTEN_EVENT_TARGET_WINDOW instead of NULL to emscripten_set_wheel_callback. The function is never called here, so it does not matter which non-null value it gets. Pick-to: 6.6 Change-Id: I10187a222513820158a938bf05cde60f489956f1 Reviewed-by: Morten Johan Sørvig --- src/corelib/platform/wasm/qstdweb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/platform/wasm/qstdweb.cpp b/src/corelib/platform/wasm/qstdweb.cpp index a263f51483..e0c6d432c1 100644 --- a/src/corelib/platform/wasm/qstdweb.cpp +++ b/src/corelib/platform/wasm/qstdweb.cpp @@ -34,7 +34,7 @@ static void usePotentialyUnusedSymbols() // called at runtime. volatile bool doIt = false; if (doIt) - emscripten_set_wheel_callback("", 0, 0, NULL); + emscripten_set_wheel_callback(EMSCRIPTEN_EVENT_TARGET_WINDOW, 0, 0, NULL); } Q_CONSTRUCTOR_FUNCTION(usePotentialyUnusedSymbols)