From 5a0a86c358adb84622b3b00e8df7e28e064378a8 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 10 Sep 2020 10:10:31 +0300 Subject: [PATCH] Fix unused variable warnings --- autotests/integration/test_helpers.cpp | 1 + effects.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/autotests/integration/test_helpers.cpp b/autotests/integration/test_helpers.cpp index 8c7d8ff299..e8acdbb123 100644 --- a/autotests/integration/test_helpers.cpp +++ b/autotests/integration/test_helpers.cpp @@ -237,6 +237,7 @@ MockInputMethod::~MockInputMethod() void MockInputMethod::zwp_input_method_v1_activate(struct ::zwp_input_method_context_v1 *context) { + Q_UNUSED(context) if (!m_inputSurface) { m_inputSurface = Test::createSurface(); m_inputMethodSurface = Test::createInputPanelSurfaceV1(m_inputSurface, s_waylandConnection.outputs.first()); diff --git a/effects.cpp b/effects.cpp index c0ac99124f..2a987250e8 100644 --- a/effects.cpp +++ b/effects.cpp @@ -246,7 +246,7 @@ EffectsHandlerImpl::EffectsHandlerImpl(Compositor *compositor, Scene *scene) for (InternalClient *client : ws->internalClients()) { setupClientConnections(client); } - if (auto w = waylandServer()) { + if (waylandServer()) { const auto clients = waylandServer()->clients(); for (AbstractClient *c : clients) { if (c->readyForPainting()) {