Skip to content

Commit

Permalink
spdb_memtable: fix an unused parameter issue (#91)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
isaac-io committed Jul 31, 2022
1 parent 851704d commit 5d78425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/speedb/memtable/hash_spd_rep.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 5d78425

Please sign in to comment.