summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-25 19:18:08 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-25 19:42:27 +0200
commit0f6f34ca2fca81734544b32e8dbc8ee32122bb65 (patch)
tree79bb05d19d6d7f3ec4966b2913b7628d3ad8de0f /tests
parent7f0f45c544b3a48feec3226faa8bb3018d542d9c (diff)
downloadsink-0f6f34ca2fca81734544b32e8dbc8ee32122bb65.tar.gz
sink-0f6f34ca2fca81734544b32e8dbc8ee32122bb65.zip
Fixed more warnings and then disabled them
..because there is a boatload more to fix.
Diffstat (limited to 'tests')
-rw-r--r--tests/hawd/dataset.cpp2
-rw-r--r--tests/storagetest.cpp2
2 files changed, 2 insertions, 2 deletions
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<void(const Row &row)> &resultHandler)
297 } 297 }
298 298
299 row.fromBinary(value); 299 row.fromBinary(value);
300 row.m_key = *(qint64 *)key.data(); 300 row.m_key = *(const qint64 *)key.data();
301 resultHandler(row); 301 resultHandler(row);
302 return true; 302 return true;
303 }, 303 },
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:
198 QList<QFuture<void>> futures; 198 QList<QFuture<void>> futures;
199 const int concurrencyLevel = 20; 199 const int concurrencyLevel = 20;
200 for (int num = 0; num < concurrencyLevel; num++) { 200 for (int num = 0; num < concurrencyLevel; num++) {
201 futures << QtConcurrent::run([this, count, &error]() { 201 futures << QtConcurrent::run([this, &error]() {
202 Sink::Storage::DataStore storage(testDataPath, dbName, Sink::Storage::DataStore::ReadOnly); 202 Sink::Storage::DataStore storage(testDataPath, dbName, Sink::Storage::DataStore::ReadOnly);
203 Sink::Storage::DataStore storage2(testDataPath, dbName + "2", Sink::Storage::DataStore::ReadOnly); 203 Sink::Storage::DataStore storage2(testDataPath, dbName + "2", Sink::Storage::DataStore::ReadOnly);
204 for (int i = 0; i < count; i++) { 204 for (int i = 0; i < count; i++) {