lib: fix clang compatibility / warnings

This commit is contained in:
Dirk-Jan C. Binnema
2022-02-18 10:49:56 +02:00
parent d2e6cfdf70
commit c0da564bba
16 changed files with 48 additions and 22 deletions

View File

@ -196,7 +196,7 @@ test_mu_maildir_flags_from_path(void)
}
}
static void
[[maybe_unused]] static void
assert_matches_regexp(const char* str, const char* rx)
{
if (!g_regex_match_simple(rx, str, (GRegexCompileFlags)0, (GRegexMatchFlags)0)) {

View File

@ -32,7 +32,7 @@ using namespace Mu;
struct Case {
const std::string expr;
const std::string expected;
WarningVec warnings;
WarningVec warnings{};
};
using CaseVec = std::vector<Case>;