clang: fix some compiler warnings
From CI.
This commit is contained in:
@ -119,7 +119,6 @@ private:
|
|||||||
std::string fname_;
|
std::string fname_;
|
||||||
using OutType = std::variant<std::ofstream, std::ostringstream>;
|
using OutType = std::variant<std::ofstream, std::ostringstream>;
|
||||||
OutType out_;
|
OutType out_;
|
||||||
bool do_unlink_{};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -655,7 +655,7 @@ Store::maildirs() const
|
|||||||
|
|
||||||
Scanner::Handler handler = [&](const std::string& path, auto&& _1, auto&& _2) {
|
Scanner::Handler handler = [&](const std::string& path, auto&& _1, auto&& _2) {
|
||||||
auto md{path.substr(prefix_size)};
|
auto md{path.substr(prefix_size)};
|
||||||
mdirs.emplace_back(std::move(md.empty() ? "/" : md));
|
mdirs.emplace_back(md.empty() ? "/" : std::move(md));
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -536,10 +536,7 @@ private:
|
|||||||
|
|
||||||
mutable std::mutex lock_;
|
mutable std::mutex lock_;
|
||||||
std::string path_;
|
std::string path_;
|
||||||
|
|
||||||
DbType db_;
|
DbType db_;
|
||||||
bool in_tx_;
|
|
||||||
|
|
||||||
size_t tx_level_{};
|
size_t tx_level_{};
|
||||||
const size_t batch_size_;
|
const size_t batch_size_;
|
||||||
size_t changes_{};
|
size_t changes_{};
|
||||||
|
|||||||
@ -209,7 +209,7 @@ test_logger_threads(void)
|
|||||||
/* log to the logger file from many threass */
|
/* log to the logger file from many threass */
|
||||||
for (auto n = 0; n != thread_num; ++n)
|
for (auto n = 0; n != thread_num; ++n)
|
||||||
threads.emplace_back(
|
threads.emplace_back(
|
||||||
std::thread([n,&running]{
|
std::thread([&running]{
|
||||||
while (running) {
|
while (running) {
|
||||||
//mu_debug("log message from thread <{}>", n);
|
//mu_debug("log message from thread <{}>", n);
|
||||||
std::this_thread::yield();
|
std::this_thread::yield();
|
||||||
|
|||||||
Reference in New Issue
Block a user