Fix two ununsed compile warnings
This commit is contained in:
parent
cee6912d00
commit
57f8837e39
2 changed files with 1 additions and 1 deletions
|
@ -684,6 +684,7 @@ static quint32 qtToWaylandButton(Qt::MouseButton button)
|
||||||
});
|
});
|
||||||
return s_buttons.value(button, 0);
|
return s_buttons.value(button, 0);
|
||||||
#else
|
#else
|
||||||
|
Q_UNUSED(button)
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -162,7 +162,6 @@ QImage ShmClientBuffer::data() const
|
||||||
wl_shm_buffer_begin_access(buffer);
|
wl_shm_buffer_begin_access(buffer);
|
||||||
const uchar *data = static_cast<const uchar *>(wl_shm_buffer_get_data(buffer));
|
const uchar *data = static_cast<const uchar *>(wl_shm_buffer_get_data(buffer));
|
||||||
const uint32_t stride = wl_shm_buffer_get_stride(buffer);
|
const uint32_t stride = wl_shm_buffer_get_stride(buffer);
|
||||||
const uint32_t format = wl_shm_buffer_get_format(buffer);
|
|
||||||
return QImage(data, d->width, d->height, stride, d->format, cleanupShmData, buffer);
|
return QImage(data, d->width, d->height, stride, d->format, cleanupShmData, buffer);
|
||||||
}
|
}
|
||||||
return d->savedData;
|
return d->savedData;
|
||||||
|
|
Loading…
Reference in a new issue