Add ; to Q_UNUSED

This is required to remove the ; from the macro with Qt 6.

Task-number: QTBUG-82978
Change-Id: Ia626b9fbc2e4215cb9232ef9bcb71742d62dff4e
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
Lars Schmertmann 2020-06-27 13:03:01 +02:00
parent 2b827691dc
commit a15ab03734
5 changed files with 8 additions and 8 deletions

View File

@ -439,7 +439,7 @@ uint32_t QWaylandDisplay::currentTimeMillisec()
static void
sync_callback(void *data, struct wl_callback *callback, uint32_t serial)
{
Q_UNUSED(serial)
Q_UNUSED(serial);
bool *done = static_cast<bool *>(data);
*done = true;

View File

@ -57,8 +57,8 @@ void QWaylandShellSurface::setWindowFlags(Qt::WindowFlags flags)
void QWaylandShellSurface::sendProperty(const QString &name, const QVariant &value)
{
Q_UNUSED(name)
Q_UNUSED(value)
Q_UNUSED(name);
Q_UNUSED(value);
}
}

View File

@ -86,7 +86,7 @@ public:
virtual void raise() {}
virtual void lower() {}
virtual void setContentOrientationMask(Qt::ScreenOrientations orientation) { Q_UNUSED(orientation) }
virtual void setContentOrientationMask(Qt::ScreenOrientations orientation) { Q_UNUSED(orientation); }
virtual void sendProperty(const QString &name, const QVariant &value);

View File

@ -33,9 +33,9 @@ namespace Impl {
void FullScreenShellV1::zwp_fullscreen_shell_v1_present_surface(Resource *resource, struct ::wl_resource *surface, uint32_t method, struct ::wl_resource *output)
{
Q_UNUSED(resource)
Q_UNUSED(method)
Q_UNUSED(output)
Q_UNUSED(resource);
Q_UNUSED(method);
Q_UNUSED(output);
m_surfaces.append(Surface::fromResource(surface));
}

View File

@ -289,7 +289,7 @@ void TabletV2::sendRemoved()
void TabletV2::zwp_tablet_v2_destroy(QtWaylandServer::zwp_tablet_v2::Resource *resource)
{
Q_UNUSED(resource)
Q_UNUSED(resource);
if (m_tabletSeat) {
bool removed = m_tabletSeat->m_tabletsWaitingForDestroy.removeOne(this);
QVERIFY(removed);