From 6ce2f3f26bf08b4c6952f492a3731eb4fe5a42bc Mon Sep 17 00:00:00 2001 From: Lars Schmertmann Date: Sat, 27 Jun 2020 14:18:09 +0200 Subject: 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 --- src/platformsupport/eglconvenience/qeglconvenience.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/platformsupport/eglconvenience/qeglconvenience.cpp') 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; -- cgit v1.2.3