]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
LMDB: Fix unused argument warnings
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 14 Feb 2023 08:46:17 +0000 (09:46 +0100)
committerFred Morcos <fred.morcos@open-xchange.com>
Mon, 20 Feb 2023 10:22:47 +0000 (11:22 +0100)
ext/lmdb-safe/lmdb-safe.cc
ext/lmdb-safe/lmdb-typed.hh

index fc9e7c7197a56c71d5f6cb358bb290d75b708ac0..09eb840809cb7c66400e722145c90b82bb537fc4 100644 (file)
@@ -16,7 +16,7 @@ static string MDBError(int rc)
   return mdb_strerror(rc);
 }
 
-MDBDbi::MDBDbi(MDB_env* env, MDB_txn* txn, const string_view dbname, int flags)
+MDBDbi::MDBDbi(MDB_env* /* env */, MDB_txn* txn, const string_view dbname, int flags)
 {
   // A transaction that uses this function must finish (either commit or abort) before any other transaction in the process may use this function.
 
index 0810d9a97e82be2de0583da143dd2b3460f90ceb..ffb34327e003907f1189ba8bf23bb9df35859ce2 100644 (file)
@@ -159,17 +159,17 @@ struct index_on_function : LMDBIndexOps<Class, Type, index_on_function<Class, Ty
 /** nop index, so we can fill our N indexes, even if you don't use them all */
 struct nullindex_t
 {
-  template<typename Class>
-  void put(MDBRWTransaction& txn, const Class& t, uint32_t id, int flags=0)
+  template <typename Class>
+  void put(MDBRWTransaction& /* txn */, const Class& /* t */, uint32_t /* id */, int /* flags */ = 0)
   {}
-  template<typename Class>
-  void del(MDBRWTransaction& txn, const Class& t, uint32_t id)
+
+  template <typename Class>
+  void del(MDBRWTransaction& /* txn */, const Class& /* t */, uint32_t /* id */)
   {}
 
-  void openDB(std::shared_ptr<MDBEnv>& env, string_view str, int flags)
-  {
+  void openDB(std::shared_ptr<MDBEnv>& /* env */, string_view /* str */, int /* flags */)
+  {}
 
-  }
   typedef uint32_t type; // dummy
 };
 
@@ -330,12 +330,12 @@ public:
         d_cursor.del();
       }
 
-      bool operator!=(const eiter_t& rhs) const
+      bool operator!=(const eiter_t& /* rhs */) const
       {
         return !d_end;
       }
 
-      bool operator==(const eiter_t& rhs) const
+      bool operator==(const eiter_t& /* rhs */) const
       {
         return d_end;
       }