fix compilation error / clang warnings

This commit is contained in:
Dirk-Jan C. Binnema
2020-07-25 11:26:08 +03:00
parent 6cea9fcd71
commit 148c906d8a
8 changed files with 11 additions and 12 deletions

View File

@ -541,8 +541,8 @@ static gboolean
output_sexp (MuMsg *msg, MuMsgIter *iter, const MuConfig *opts, GError **err)
{
const auto *ti{opts->threads ? mu_msg_iter_get_thread_info (iter) : NULL};
const auto sexp{Mu:Mu::msg_to_sexp(msg , mu_msg_iter_get_docid (iter), ti,
MU_MSG_OPTION_HEADERS_ONLY)};
const auto sexp{Mu::msg_to_sexp(msg , mu_msg_iter_get_docid (iter), ti,
MU_MSG_OPTION_HEADERS_ONLY)};
fputs (to_string(sexp, !opts->nocolor).c_str(), stdout);
fputs ("\n", stdout);

View File

@ -372,7 +372,7 @@ static bool
add_path_func (Mu::Store& store, const char *path, GError **err)
{
const auto docid = store.add_message (path);
g_debug ("added message @ %s, docid=%u", docid);
g_debug ("added message @ %s, docid=%u", path, docid);
return true;
}
@ -415,7 +415,7 @@ tickle_func (Mu::Store& store, const char *path, GError **err)
return false;
const auto res = mu_msg_tickle (msg, err);
g_debug ("tickled %s (%s)", res ? "ok" : "failed");
g_debug ("tickled %s (%s)", path, res ? "ok" : "failed");
mu_msg_unref (msg);
return res == TRUE;