From 00d3796f22e5fc8c1ddb477270f428646e71a4a4 Mon Sep 17 00:00:00 2001 From: Isaac Garzon Date: Sun, 31 Jul 2022 18:16:11 +0300 Subject: [PATCH] spdb_memtable: fix an unused parameter issue (#91) A last minute change before merging #30 breaks builds that configure `-Werror=unused-parameter` (this is the default for some GCC versions with the `-Wextra` configuration). Fix it by not declaring the `logger` argument to the `CreateMemTableRep()` function. --- plugin/speedb/memtable/hash_spd_rep.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/speedb/memtable/hash_spd_rep.cc b/plugin/speedb/memtable/hash_spd_rep.cc index dab5884d28..f3f11d5ee5 100644 --- a/plugin/speedb/memtable/hash_spd_rep.cc +++ b/plugin/speedb/memtable/hash_spd_rep.cc @@ -981,7 +981,7 @@ HashSpdRepFactory::HashSpdRepFactory(size_t bucket_count) MemTableRep* HashSpdRepFactory::CreateMemTableRep( const MemTableRep::KeyComparator& compare, Allocator* allocator, - const SliceTransform* /*transform*/, Logger* logger) { + const SliceTransform* /*transform*/, Logger* /*logger*/) { return new HashLocklessRep(compare, allocator, bucket_count_, 10000); }