From: Chris Hofstaedtler Date: Tue, 18 Apr 2023 00:28:46 +0000 (+0200) Subject: lmdb-safe: remove leftover debug variable X-Git-Tag: auth-4.8.0-beta1~11^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12759%2Fhead;p=thirdparty%2Fpdns.git lmdb-safe: remove leftover debug variable In file included from ../../ext/lmdb-safe/lmdb-typed.cc:1: ../../ext/lmdb-safe/lmdb-typed.hh:656:11: warning: variable 'scanned' set but not used [-Wunused-but-set-variable] int scanned = 0; ^ --- diff --git a/ext/lmdb-safe/lmdb-typed.hh b/ext/lmdb-safe/lmdb-typed.hh index bfaffa76ef..a0e2cefb0d 100644 --- a/ext/lmdb-safe/lmdb-typed.hh +++ b/ext/lmdb-safe/lmdb-typed.hh @@ -653,9 +653,7 @@ public: int rc = cursor.get(out, id, MDB_SET_RANGE); - int scanned = 0; while (rc == 0) { - scanned++; auto sout = out.getNoStripHeader(); // FIXME: this (and many others) could probably be string_view auto thiskey = getKeyFromCombinedKey(out); auto sthiskey = thiskey.getNoStripHeader(); @@ -673,7 +671,6 @@ public: rc = cursor.get(out, id, MDB_NEXT); } - // std::cerr<<"get_multi scanned="<