Fix clang warnings/errors

This commit is contained in:
Vitaliy Filippov
2024-12-19 15:30:31 +03:00
parent 2f5959e3fa
commit 63b85b6bfb
13 changed files with 25 additions and 24 deletions
+1 -1
View File
@@ -546,7 +546,7 @@ void kv_cli_t::handle_cmd(const std::vector<std::string> & cmd, std::function<vo
auto & key = cmd[1];
if (opname == "get")
{
db->get(key, [this, cb](int res, const std::string & value)
db->get(key, [cb](int res, const std::string & value)
{
if (res < 0)
fprintf(stderr, "Error: %s (code %d)\n", strerror(-res), res);