diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-05-29 13:15:47 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-05-29 13:12:45 +0200 |
commit | dddde27f6fbcff7cdb31f7138efc5d8363537b03 (patch) | |
tree | 32926f8c0e0c2e9e62db57333543bb665d1646ca /src/wallet/wallet.h | |
parent | a2e111b8a3d17e328eba6111f6c9138543255f3d (diff) | |
download | bitcoin-dddde27f6fbcff7cdb31f7138efc5d8363537b03.tar.xz |
Add [[nodiscard]] where ignoring a Result return type is an error
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 7bf7264568..cbd5008366 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1074,7 +1074,7 @@ struct MigrationResult { }; //! Do all steps to migrate a legacy wallet to a descriptor wallet -util::Result<MigrationResult> MigrateLegacyToDescriptor(const std::string& wallet_name, const SecureString& passphrase, WalletContext& context); +[[nodiscard]] util::Result<MigrationResult> MigrateLegacyToDescriptor(const std::string& wallet_name, const SecureString& passphrase, WalletContext& context); } // namespace wallet #endif // BITCOIN_WALLET_WALLET_H |