From 0f6f34ca2fca81734544b32e8dbc8ee32122bb65 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 25 Mar 2018 19:18:08 +0200 Subject: Fixed more warnings and then disabled them ..because there is a boatload more to fix. --- tests/hawd/dataset.cpp | 2 +- tests/storagetest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/hawd/dataset.cpp b/tests/hawd/dataset.cpp index 3325850..0d3047f 100644 --- a/tests/hawd/dataset.cpp +++ b/tests/hawd/dataset.cpp @@ -297,7 +297,7 @@ void Dataset::eachRow(const std::function &resultHandler) } row.fromBinary(value); - row.m_key = *(qint64 *)key.data(); + row.m_key = *(const qint64 *)key.data(); resultHandler(row); return true; }, diff --git a/tests/storagetest.cpp b/tests/storagetest.cpp index 3368549..802947f 100644 --- a/tests/storagetest.cpp +++ b/tests/storagetest.cpp @@ -198,7 +198,7 @@ private slots: QList> futures; const int concurrencyLevel = 20; for (int num = 0; num < concurrencyLevel; num++) { - futures << QtConcurrent::run([this, count, &error]() { + futures << QtConcurrent::run([this, &error]() { Sink::Storage::DataStore storage(testDataPath, dbName, Sink::Storage::DataStore::ReadOnly); Sink::Storage::DataStore storage2(testDataPath, dbName + "2", Sink::Storage::DataStore::ReadOnly); for (int i = 0; i < count; i++) { -- cgit v1.2.3