diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-24 14:49:10 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-24 14:49:10 +0200 |
commit | c40d14c78b6eaae9dd7ea0c00e49d99a1121d189 (patch) | |
tree | bc130141514eeea43899d11de175b096a14edb1f /common/storage_lmdb.cpp | |
parent | 44d77a4e65dcc5d79a1e924a139ec65a9a1e8f9d (diff) | |
download | sink-c40d14c78b6eaae9dd7ea0c00e49d99a1121d189.tar.gz sink-c40d14c78b6eaae9dd7ea0c00e49d99a1121d189.zip |
Fixed a bunch of warnings
Diffstat (limited to 'common/storage_lmdb.cpp')
-rw-r--r-- | common/storage_lmdb.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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 | |||
570 | return 0; | 570 | return 0; |
571 | } | 571 | } |
572 | 572 | ||
573 | int numberOfRetrievedValues = 0; | 573 | MDB_val firstKey = {(size_t)lowerBound.size(), (void *)lowerBound.constData()}; |
574 | 574 | MDB_val idealLastKey = {(size_t)upperBound.size(), (void *)upperBound.constData()}; | |
575 | MDB_val firstKey = { .mv_size = (size_t)lowerBound.size(), .mv_data = (void *)lowerBound.constData() }; | ||
576 | MDB_val idealLastKey = { .mv_size = (size_t)upperBound.size(), .mv_data = (void *)upperBound.constData() }; | ||
577 | MDB_val lastKey = idealLastKey; | ||
578 | MDB_val currentKey; | 575 | MDB_val currentKey; |
579 | MDB_val data; | 576 | MDB_val data; |
580 | 577 | ||