From e8b4c49efddb87f4195c74668b5026119eccea56 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 17 Nov 2011 15:52:53 +0100 Subject: qtbase tests: Fix some warnings - Fix warnings about QAtomicPointer/Int usage - Fix some gcc 4.6 warnings about assigned/unused variables Change-Id: Ib4dbf9110f0dad93ad48e97278310f05fad3a82a Reviewed-by: Rohan McGovern --- tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp | 2 -- tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/auto/widgets/dialogs') diff --git a/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp b/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp index 483841e8f5..bdc760926b 100644 --- a/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp +++ b/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp @@ -517,11 +517,9 @@ void tst_QFiledialog::completer() if (!fullPath.endsWith(QLatin1Char('/'))) fullPath.append(QLatin1Char('/')); fullPath.append(input); - bool inputStartsWithRootPath = false; if (input.startsWith(QDir::rootPath())) { fullPath = input; input.clear(); - inputStartsWithRootPath = true; } QFileInfo fi(fullPath); diff --git a/tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp b/tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp index 3bf618b679..f195017dc4 100644 --- a/tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp +++ b/tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp @@ -522,6 +522,7 @@ void tst_QMessageBox::testSymbols() button = QMessageBox::Default; button = QMessageBox::Escape; button = QMessageBox::FlagMask; + QVERIFY(button); const QString text = QStringLiteral("Foo"); mb1.setText(text); -- cgit v1.2.3