From 7c52358e3fc9798715895a57e6eee3274a2b84f3 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 31 Jan 2016 10:06:07 +0100 Subject: Fixed warnings --- common/entitybuffer.cpp | 1 + common/storage_lmdb.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/entitybuffer.cpp b/common/entitybuffer.cpp index 0e5435a..344bccc 100644 --- a/common/entitybuffer.cpp +++ b/common/entitybuffer.cpp @@ -25,6 +25,7 @@ bool EntityBuffer::isValid() const const Sink::Entity &EntityBuffer::entity() { + Q_ASSERT(mEntity); return *mEntity; } diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 8b29681..893c37c 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp @@ -463,7 +463,7 @@ QList Storage::Transaction::getDatabaseNames() const MDB_val data; MDB_cursor *cursor; - rc = mdb_cursor_open(d->transaction, d->dbi, &cursor); + mdb_cursor_open(d->transaction, d->dbi, &cursor); if ((rc = mdb_cursor_get(cursor, &key, &data, MDB_FIRST)) == 0) { list << QByteArray::fromRawData((char*)key.mv_data, key.mv_size); while ((rc = mdb_cursor_get(cursor, &key, &data, MDB_NEXT)) == 0) { -- cgit v1.2.3