summaryrefslogtreecommitdiffstats
path: root/src/platformsupport
diff options
context:
space:
mode:
authorLars Schmertmann <Lars.Schmertmann@governikus.de>2020-06-27 14:18:09 +0200
committerLars Schmertmann <Lars.Schmertmann@governikus.de>2020-07-07 11:51:48 +0200
commit6ce2f3f26bf08b4c6952f492a3731eb4fe5a42bc (patch)
tree727427eb4c603e74954d4da462484ea7bf5c65bb /src/platformsupport
parentd9cc1499954829faf9486fb72056e29f1bad58e3 (diff)
Add ; to Q_UNUSED
This is required to remove the ; from the macro with Qt 6. Task-number: QTBUG-82978 Change-Id: I3f0b6717956ca8fa486bed9817b89dfa19f5e0e1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/platformsupport')
-rw-r--r--src/platformsupport/eglconvenience/qeglconvenience.cpp8
-rw-r--r--src/platformsupport/input/evdevtablet/qevdevtablethandler.cpp2
-rw-r--r--src/platformsupport/kmsconvenience/qkmsdevice.cpp2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/platformsupport/eglconvenience/qeglconvenience.cpp b/src/platformsupport/eglconvenience/qeglconvenience.cpp
index c689836d75..5d850f6e20 100644
--- a/src/platformsupport/eglconvenience/qeglconvenience.cpp
+++ b/src/platformsupport/eglconvenience/qeglconvenience.cpp
@@ -468,7 +468,7 @@ void q_printEglConfig(EGLDisplay display, EGLConfig config)
QSizeF q_physicalScreenSizeFromFb(int framebufferDevice, const QSize &screenSize)
{
#ifndef Q_OS_LINUX
- Q_UNUSED(framebufferDevice)
+ Q_UNUSED(framebufferDevice);
#endif
const int defaultPhysicalDpi = 100;
static QSizeF size;
@@ -521,7 +521,7 @@ QSizeF q_physicalScreenSizeFromFb(int framebufferDevice, const QSize &screenSize
QSize q_screenSizeFromFb(int framebufferDevice)
{
#ifndef Q_OS_LINUX
- Q_UNUSED(framebufferDevice)
+ Q_UNUSED(framebufferDevice);
#endif
const int defaultWidth = 800;
const int defaultHeight = 600;
@@ -565,7 +565,7 @@ QSize q_screenSizeFromFb(int framebufferDevice)
int q_screenDepthFromFb(int framebufferDevice)
{
#ifndef Q_OS_LINUX
- Q_UNUSED(framebufferDevice)
+ Q_UNUSED(framebufferDevice);
#endif
const int defaultDepth = 32;
static int depth = qEnvironmentVariableIntValue("QT_QPA_EGLFS_DEPTH");
@@ -594,7 +594,7 @@ int q_screenDepthFromFb(int framebufferDevice)
qreal q_refreshRateFromFb(int framebufferDevice)
{
#ifndef Q_OS_LINUX
- Q_UNUSED(framebufferDevice)
+ Q_UNUSED(framebufferDevice);
#endif
static qreal rate = 0;
diff --git a/src/platformsupport/input/evdevtablet/qevdevtablethandler.cpp b/src/platformsupport/input/evdevtablet/qevdevtablethandler.cpp
index 7ed068c5cc..3be93ff868 100644
--- a/src/platformsupport/input/evdevtablet/qevdevtablethandler.cpp
+++ b/src/platformsupport/input/evdevtablet/qevdevtablethandler.cpp
@@ -169,7 +169,7 @@ void QEvdevTabletData::report()
QEvdevTabletHandler::QEvdevTabletHandler(const QString &device, const QString &spec, QObject *parent)
: QObject(parent), m_fd(-1), m_device(device), m_notifier(0), d(0)
{
- Q_UNUSED(spec)
+ Q_UNUSED(spec);
setObjectName(QLatin1String("Evdev Tablet Handler"));
diff --git a/src/platformsupport/kmsconvenience/qkmsdevice.cpp b/src/platformsupport/kmsconvenience/qkmsdevice.cpp
index e0982fe832..1ec9c869d7 100644
--- a/src/platformsupport/kmsconvenience/qkmsdevice.cpp
+++ b/src/platformsupport/kmsconvenience/qkmsdevice.cpp
@@ -1011,7 +1011,7 @@ void QKmsDevice::parseCrtcProperties(uint32_t crtcId, QKmsOutput *output)
}
enumerateProperties(objProps, [output](drmModePropertyPtr prop, quint64 value) {
- Q_UNUSED(value)
+ Q_UNUSED(value);
if (!strcasecmp(prop->name, "mode_id"))
output->modeIdPropertyId = prop->prop_id;
else if (!strcasecmp(prop->name, "active"))