From 451c0a6b1c3ff17d00090fc91eb380cebf8b6775 Mon Sep 17 00:00:00 2001 From: Mikolaj Boc Date: Mon, 12 Jun 2023 12:08:24 +0200 Subject: [PATCH] Make qtbase compile for WASM with Werror MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There are unused variable warnings which cause the compilation to fail when Werror is used in qpermissions_wasm.cpp Change-Id: I2cf2035f52f0a5d570a56dcd4c82bf2ecf3006c7 Reviewed-by: Morten Johan Sørvig --- src/corelib/kernel/qpermissions_wasm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/kernel/qpermissions_wasm.cpp b/src/corelib/kernel/qpermissions_wasm.cpp index 7e885a4382..846e62ccf7 100644 --- a/src/corelib/kernel/qpermissions_wasm.cpp +++ b/src/corelib/kernel/qpermissions_wasm.cpp @@ -131,7 +131,7 @@ namespace return cb(Qt::PermissionStatus::Denied); qstdweb::PromiseCallbacks queryCallbacks; - queryCallbacks.thenFunc = [device, cb](val mediaStream) + queryCallbacks.thenFunc = [device, cb](val) { updatePermission(device, wapiGranted, cb); };