From 5103b640ccbb9f7a04a442640997dbe19b0c24f0 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 7 Dec 2014 22:48:19 +0000 Subject: [PATCH] silence a few warnings in kdeui proxy model test --- kdeui/tests/proxymodeltestsuite/modeltest.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/kdeui/tests/proxymodeltestsuite/modeltest.cpp b/kdeui/tests/proxymodeltestsuite/modeltest.cpp index 06b7a158..16bb668e 100644 --- a/kdeui/tests/proxymodeltestsuite/modeltest.cpp +++ b/kdeui/tests/proxymodeltestsuite/modeltest.cpp @@ -156,6 +156,9 @@ void ModelTest::nonDestructiveBasicTest() model->sibling ( 0, 0, QModelIndex() ); model->span ( QModelIndex() ); model->supportedDropActions(); + + // compiler warnings + Q_UNUSED(flags) } /*! @@ -226,6 +229,10 @@ void ModelTest::hasIndex() // hasIndex() is tested more extensively in checkChildren(), // but this catches the big mistakes + + // compiler warnings + Q_UNUSED(rows) + Q_UNUSED(columns) } /*! @@ -480,6 +487,10 @@ void ModelTest::data() state == Qt::PartiallyChecked || state == Qt::Checked ); } + + // compiler warnings + Q_UNUSED(alignment) + Q_UNUSED(state) } /*!