From 7d55efb32e845c910177c083e095956765fd5c17 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 24 Jan 2021 13:30:26 +0100 Subject: Remove build warnings. --- tests/dice/tst_dice.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/dice/tst_dice.cpp b/tests/dice/tst_dice.cpp index 0ede904..910fb4d 100644 --- a/tests/dice/tst_dice.cpp +++ b/tests/dice/tst_dice.cpp @@ -707,8 +707,9 @@ void TestDice::countTest() QVector vector; bool first= true; - for(auto i : condition) + for(const auto& i : condition) { + Q_UNUSED(i) if(!first) { first= !first; @@ -989,6 +990,8 @@ void TestDice::ifTest_data() QTest::addRow("cmd9") << QVector({25, 8, 14}) << onScalar << 1 << "False"; QTest::addRow("cmd10") << QVector({25, 8, 14}) << onScalar << 47 << "True"; + + QTest::addRow("cmd11") << QVector({25, 8, 14}) << onEachValue << 47 << "True"; } void TestDice::paintTest() {} -- cgit v1.2.3-70-g09d2