build: Bump minimum supported Clang to clang-13

This commit is contained in:
MarcoFalke committed 2023-10-24 18:52:00 +02:00
1 parent fab1ef9512
commit fae379b6b1
5 files changed
+10 -11

No files matched your search

+4 -4
View File
@@ -602,7 +602,7 @@ public:
bilingual_str error;
std::unique_ptr<Wallet> wallet{MakeWallet(m_context, CreateWallet(m_context, name, /*load_on_start=*/true, options, status, error, warnings))};
if (wallet) {
return {std::move(wallet)};
return wallet;
} else {
return util::Error{error};
}
@@ -616,7 +616,7 @@ public:
bilingual_str error;
std::unique_ptr<Wallet> wallet{MakeWallet(m_context, LoadWallet(m_context, name, /*load_on_start=*/true, options, status, error, warnings))};
if (wallet) {
return {std::move(wallet)};
return wallet;
} else {
return util::Error{error};
}
@@ -627,7 +627,7 @@ public:
bilingual_str error;
std::unique_ptr<Wallet> wallet{MakeWallet(m_context, RestoreWallet(m_context, backup_file, wallet_name, /*load_on_start=*/true, status, error, warnings))};
if (wallet) {
return {std::move(wallet)};
return wallet;
} else {
return util::Error{error};
}
@@ -642,7 +642,7 @@ public:
.solvables_wallet_name = res->solvables_wallet ? std::make_optional(res->solvables_wallet->GetName()) : std::nullopt,
.backup_path = res->backup_path,
};
return {std::move(out)}; // std::move to work around clang bug
return out;
}
std::string getWalletDir() override
{