--warning: treat unused variables so we are not warned about them

This commit is contained in:
Aleix Pol 2021-05-13 17:09:23 +02:00
parent 2a9a436307
commit f70256931c
3 changed files with 3 additions and 1 deletions

View file

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

View file

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

View file

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