diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-26 19:41:23 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-29 14:33:29 +0200 |
commit | 9023791a45d11ec170e07f21bd106075c86dd3dc (patch) | |
tree | 83c79c87f2ff18ec9de85d4c8cc2e1eb7166793c /tests/auto/corelib/mimetypes/qmimedatabase | |
parent | 6f17509ad9044c689e22719c6c4d1f7f88e4c954 (diff) |
Fix warnings about unused expression results in tests
Change-Id: I401ec8a3742a5bb51a1b8b291c53395c3880117c
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/corelib/mimetypes/qmimedatabase')
-rw-r--r-- | tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp b/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp index c214c75d52..5ca89c7dc1 100644 --- a/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp +++ b/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp @@ -858,14 +858,14 @@ void tst_QMimeDatabase::fromThreads() QThreadPool tp; tp.setMaxThreadCount(20); // Note that data-based tests cannot be used here (QTest::fetchData asserts). - QtConcurrent::run(&tp, &tst_QMimeDatabase::mimeTypeForName, this); - QtConcurrent::run(&tp, &tst_QMimeDatabase::aliases, this); - QtConcurrent::run(&tp, &tst_QMimeDatabase::allMimeTypes, this); - QtConcurrent::run(&tp, &tst_QMimeDatabase::icons, this); - QtConcurrent::run(&tp, &tst_QMimeDatabase::inheritance, this); - QtConcurrent::run(&tp, &tst_QMimeDatabase::knownSuffix, this); - QtConcurrent::run(&tp, &tst_QMimeDatabase::mimeTypeForFileWithContent, this); - QtConcurrent::run(&tp, &tst_QMimeDatabase::allMimeTypes, this); // a second time + Q_UNUSED(QtConcurrent::run(&tp, &tst_QMimeDatabase::mimeTypeForName, this)); + Q_UNUSED(QtConcurrent::run(&tp, &tst_QMimeDatabase::aliases, this)); + Q_UNUSED(QtConcurrent::run(&tp, &tst_QMimeDatabase::allMimeTypes, this)); + Q_UNUSED(QtConcurrent::run(&tp, &tst_QMimeDatabase::icons, this)); + Q_UNUSED(QtConcurrent::run(&tp, &tst_QMimeDatabase::inheritance, this)); + Q_UNUSED(QtConcurrent::run(&tp, &tst_QMimeDatabase::knownSuffix, this)); + Q_UNUSED(QtConcurrent::run(&tp, &tst_QMimeDatabase::mimeTypeForFileWithContent, this)); + Q_UNUSED(QtConcurrent::run(&tp, &tst_QMimeDatabase::allMimeTypes, this)); // a second time QVERIFY(tp.waitForDone(60000)); } |