From 199b82b5cf6bdf813ae1d4f9adb2004b41095c20 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 12 Jan 2022 09:20:56 -0800 Subject: [PATCH] XDG shell: fix warnings about unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit qwaylandxdgshell.cpp:508:15: warning: unused variable ‘activation’ Pick-to: 6.3 Change-Id: I0e5f6bec596a4a78bd3bfffd16c995a0b7feef5c Reviewed-by: Eskil Abrahamsen Blomfeldt Reviewed-by: Aleix Pol Gonzalez --- .../plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp index 547631fd57e..2ca6eb9d341 100644 --- a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp +++ b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp @@ -505,7 +505,7 @@ void QWaylandXdgSurface::requestXdgActivationToken(quint32 serial) void QWaylandXdgSurface::setXdgActivationToken(const QString &token) { - if (auto *activation = m_shell->activation()) { + if (m_shell->activation()) { m_activationToken = token; } else { qCWarning(lcQpaWayland) << "zxdg_activation_v1 not available";