From 57f8837e398c9be21d78f707d2a66f7d4b56f3fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9ven=20Car?= Date: Wed, 1 Sep 2021 17:51:12 +0200 Subject: [PATCH] Fix two ununsed compile warnings --- src/wayland/seat_interface.cpp | 1 + src/wayland/shmclientbuffer.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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;