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); }