--warning: treat unused variables so we are not warned about them
This commit is contained in:
parent
2a9a436307
commit
f70256931c
3 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue