build: avoid some compiler warnings

This commit is contained in:
Dirk-Jan C. Binnema 2021-09-02 23:36:43 +03:00
parent 87ac89b082
commit 9bcebb5cf8
2 changed files with 3 additions and 13 deletions

View File

@ -241,7 +241,7 @@ Contacts::add (ContactInfo&& ci)
ci_existing.last_seen = ci.last_seen; ci_existing.last_seen = ci.last_seen;
} }
return ci; return std::move(ci);
} }
} }

View File

@ -584,23 +584,13 @@ test_mu_query_tags_02 (void)
/* Tests for https://github.com/djcb/mu/issues/380 /* Tests for https://github.com/djcb/mu/issues/380
On certain platforms, something goes wrong during compilation and On certain platforms, something goes wrong during compilation and the
the --related option doesn't work. --related option doesn't work.
*/ */
static void static void
test_mu_query_threads_compilation_error (void) test_mu_query_threads_compilation_error (void)
{ {
const auto xpath = make_database (MU_TESTMAILDIR); const auto xpath = make_database (MU_TESTMAILDIR);
g_assert_false (xpath.empty());
#ifndef __linux__
// seems this test fails on MacOS sometimes... cannot investigate right now.
#warning investigate failing test
g_test_skip("skip test that fails on MacOS");
return;
#endif
g_assert_cmpuint (run_and_count_matches g_assert_cmpuint (run_and_count_matches
(xpath, "msgid:uwsireh25.fsf@one.dot.net"), (xpath, "msgid:uwsireh25.fsf@one.dot.net"),