diff --git a/src/wayland/seat_interface.cpp b/src/wayland/seat_interface.cpp index d4652c24a3..0ea64f15b1 100644 --- a/src/wayland/seat_interface.cpp +++ b/src/wayland/seat_interface.cpp @@ -684,6 +684,7 @@ static quint32 qtToWaylandButton(Qt::MouseButton button) }); return s_buttons.value(button, 0); #else + Q_UNUSED(button) return 0; #endif } diff --git a/src/wayland/shmclientbuffer.cpp b/src/wayland/shmclientbuffer.cpp index 5af6e1f55d..3a2e139434 100644 --- a/src/wayland/shmclientbuffer.cpp +++ b/src/wayland/shmclientbuffer.cpp @@ -162,7 +162,6 @@ QImage ShmClientBuffer::data() const wl_shm_buffer_begin_access(buffer); const uchar *data = static_cast(wl_shm_buffer_get_data(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 d->savedData;