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 --- tests/manual/filetest/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/manual/filetest/main.cpp') diff --git a/tests/manual/filetest/main.cpp b/tests/manual/filetest/main.cpp index 22c74af3272..290dc7064ee 100644 --- a/tests/manual/filetest/main.cpp +++ b/tests/manual/filetest/main.cpp @@ -197,7 +197,7 @@ static int rm(const char *fileName) static int rmr(const char *dirName) { #if QT_VERSION < 0x050000 - Q_UNUSED(dirName) + Q_UNUSED(dirName); return 1; #else QDir dir(QString::fromLocal8Bit(dirName)); @@ -213,7 +213,7 @@ static int rmr(const char *dirName) int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); - Q_UNUSED(a) + Q_UNUSED(a); if (argc >= 3 && !qstrcmp(argv[1], "ls")) return ls(argc -2, const_cast(argv + 2), true); -- cgit v1.2.3