From c40d14c78b6eaae9dd7ea0c00e49d99a1121d189 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 24 May 2018 14:49:10 +0200 Subject: Fixed a bunch of warnings --- common/storage_lmdb.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'common/storage_lmdb.cpp') diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 2f6e7e1..ddad69d 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp @@ -570,11 +570,8 @@ int DataStore::NamedDatabase::findAllInRange(const QByteArray &lowerBound, const return 0; } - int numberOfRetrievedValues = 0; - - MDB_val firstKey = { .mv_size = (size_t)lowerBound.size(), .mv_data = (void *)lowerBound.constData() }; - MDB_val idealLastKey = { .mv_size = (size_t)upperBound.size(), .mv_data = (void *)upperBound.constData() }; - MDB_val lastKey = idealLastKey; + MDB_val firstKey = {(size_t)lowerBound.size(), (void *)lowerBound.constData()}; + MDB_val idealLastKey = {(size_t)upperBound.size(), (void *)upperBound.constData()}; MDB_val currentKey; MDB_val data; -- cgit v1.2.3