diff --git a/src/wayland/compositor_interface.cpp b/src/wayland/compositor_interface.cpp index 3035a65f5f..ce4b61e1c6 100644 --- a/src/wayland/compositor_interface.cpp +++ b/src/wayland/compositor_interface.cpp @@ -103,7 +103,7 @@ void CompositorInterface::Private::createSurface(wl_client *client, wl_resource return; } QObject::connect(surface->client(), &ClientConnection::disconnected, surface, - [surface] (ClientConnection *c) { + [surface] { if (surface->resource()) { wl_resource_destroy(surface->resource()); delete surface; @@ -128,7 +128,7 @@ void CompositorInterface::Private::createRegion(wl_client *client, wl_resource * return; } QObject::connect(region->client(), &ClientConnection::disconnected, region, - [region] (ClientConnection *c) { + [region] { if (region->resource()) { wl_resource_destroy(region->resource()); delete region; diff --git a/src/wayland/seat_interface.cpp b/src/wayland/seat_interface.cpp index 88e3859eea..51c4d6d307 100644 --- a/src/wayland/seat_interface.cpp +++ b/src/wayland/seat_interface.cpp @@ -552,7 +552,7 @@ static quint32 qtToWaylandButton(Qt::MouseButton button) // further mapping not possible, 0x120 is BTN_JOYSTICK }); return s_buttons.value(button, 0); -}; +} bool SeatInterface::isPointerButtonPressed(Qt::MouseButton button) const { diff --git a/src/wayland/server/logging.cpp b/src/wayland/server/logging.cpp index a2a61c5504..3373899dcb 100644 --- a/src/wayland/server/logging.cpp +++ b/src/wayland/server/logging.cpp @@ -18,4 +18,4 @@ You should have received a copy of the GNU Lesser General Public License along with this library. If not, see . *********************************************************************/ #include "logging_p.h" -Q_LOGGING_CATEGORY(KWAYLAND_SERVER, "kwayland-server", QtCriticalMsg); +Q_LOGGING_CATEGORY(KWAYLAND_SERVER, "kwayland-server", QtCriticalMsg) diff --git a/src/wayland/tests/paneltest.cpp b/src/wayland/tests/paneltest.cpp index 993ae542c3..39ade53e38 100644 --- a/src/wayland/tests/paneltest.cpp +++ b/src/wayland/tests/paneltest.cpp @@ -132,6 +132,7 @@ void PanelTest::setupRegistry(Registry *registry) auto p = m_seat->createPointer(this); connect(p, &Pointer::buttonStateChanged, this, [this] (quint32 serial, quint32 time, quint32 button, KWayland::Client::Pointer::ButtonState state) { + Q_UNUSED(time) Q_UNUSED(serial) if (!m_windowManagement) { return;