Fix build warning issues

This commit is contained in:
root
2026-04-28 07:34:45 +00:00
parent 0d9afa3986
commit 34864c5254
11 changed files with 18 additions and 21 deletions
+2 -2
View File
@@ -3365,7 +3365,7 @@ UniValue importzerocoins(const UniValue& params, bool fHelp)
const UniValue &val = arrMints[idx];
const UniValue &o = val.get_obj();
const UniValue& vDenom = find_value(o, "d");
const UniValue vDenom = find_value(o, "d");
if (!vDenom.isNum())
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, missing d key");
int d = vDenom.get_int();
@@ -3389,7 +3389,7 @@ UniValue importzerocoins(const UniValue& params, bool fHelp)
//Assume coin is version 1 unless it has the version actually set
uint8_t nVersion = 1;
const UniValue& vVersion = find_value(o, "v");
const UniValue vVersion = find_value(o, "v");
if (vVersion.isNum())
nVersion = static_cast<uint8_t>(vVersion.get_int());
+1 -1
View File
@@ -1077,7 +1077,7 @@ bool AttemptBackupWallet(const CWallet& wallet, const filesystem::path& pathSrc,
return false;
}
#if BOOST_VERSION >= 105800 /* BOOST_LIB_VERSION 1_58 */
filesystem::copy_file(pathSrc.c_str(), pathDest, filesystem::copy_options::overwrite_existing);
filesystem::copy_file(pathSrc.c_str(), pathDest, filesystem::copy_option::overwrite_if_exists);
#else
std::ifstream src(pathSrc.c_str(), std::ios::binary | std::ios::in);
std::ofstream dst(pathDest.c_str(), std::ios::binary | std::ios::out | std::ios::trunc);