From f70256931cc00b2cb94a8f93dbe7c66cab167031 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 13 May 2021 17:09:23 +0200 Subject: [PATCH] --warning: treat unused variables so we are not warned about them --- src/plugins/platforms/drm/drm_backend.cpp | 2 +- src/plugins/platforms/wayland/egl_wayland_backend.cpp | 1 + src/scripting/genericscriptedconfig.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/platforms/drm/drm_backend.cpp b/src/plugins/platforms/drm/drm_backend.cpp index b673c40004..63f1c83f98 100644 --- a/src/plugins/platforms/drm/drm_backend.cpp +++ b/src/plugins/platforms/drm/drm_backend.cpp @@ -226,7 +226,7 @@ void DrmBackend::handleUdevEvent() if (device->action() == QStringLiteral("add")) { if (m_gpus.isEmpty() || !primaryGpu()->useEglStreams()) { - if (const auto &gpu = addGpu(device->devNode())) { + if (addGpu(device->devNode())) { updateOutputs(); updateCursor(); } diff --git a/src/plugins/platforms/wayland/egl_wayland_backend.cpp b/src/plugins/platforms/wayland/egl_wayland_backend.cpp index 66a2c84d91..8c7f0b113b 100644 --- a/src/plugins/platforms/wayland/egl_wayland_backend.cpp +++ b/src/plugins/platforms/wayland/egl_wayland_backend.cpp @@ -377,6 +377,7 @@ QRegion EglWaylandBackend::beginFrame(int screenId) void EglWaylandBackend::endFrame(int screenId, const QRegion &renderedRegion, const QRegion &damagedRegion) { + Q_UNUSED(renderedRegion); EglWaylandOutput *output = m_outputs[screenId]; QRegion damage = damagedRegion.intersected(output->m_waylandOutput->geometry()); presentOnSurface(output, damage); diff --git a/src/scripting/genericscriptedconfig.cpp b/src/scripting/genericscriptedconfig.cpp index 2b7c68dcad..c8ffc0cb46 100644 --- a/src/scripting/genericscriptedconfig.cpp +++ b/src/scripting/genericscriptedconfig.cpp @@ -41,6 +41,7 @@ GenericScriptedConfig::GenericScriptedConfig(const QString &componentName, const , m_packageName(keyword) , m_translator(new KLocalizedTranslator(this)) { + Q_UNUSED(componentName); QCoreApplication::instance()->installTranslator(m_translator); }