summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/gui/text/qtext/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/gui/text/qtext/main.cpp')
-rw-r--r--tests/benchmarks/gui/text/qtext/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/benchmarks/gui/text/qtext/main.cpp b/tests/benchmarks/gui/text/qtext/main.cpp
index 01e8c46bd8..97abc93b44 100644
--- a/tests/benchmarks/gui/text/qtext/main.cpp
+++ b/tests/benchmarks/gui/text/qtext/main.cpp
@@ -411,6 +411,7 @@ void tst_QText::paintLayoutToPixmap_painterFill()
void tst_QText::document()
{
QTextDocument *doc = new QTextDocument;
+ Q_UNUSED(doc)
QBENCHMARK {
QTextDocument *doc = new QTextDocument;
@@ -453,6 +454,7 @@ void tst_QText::paintDocToPixmap_painterFill()
void tst_QText::control()
{
QTextControl *control = new QTextControl(m_shortLorem);
+ Q_UNUSED(control);
QBENCHMARK {
QTextControl *control = new QTextControl;