Commit f47cc621 authored by Martin Flöser's avatar Martin Flöser

Fix unuxed-but-set-variable warning

parent 1447f464
......@@ -845,12 +845,10 @@ bool DrmOutput::presentLegacy(DrmBuffer *buffer)
return false;
}
}
int errno_save = 0;
const bool ok = drmModePageFlip(m_backend->fd(), m_crtc->id(), buffer->bufferId(), DRM_MODE_PAGE_FLIP_EVENT, this) == 0;
if (ok) {
m_crtc->setNext(buffer);
} else {
errno_save = errno;
qCWarning(KWIN_DRM) << "Page flip failed:" << strerror(errno);
}
return ok;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment