mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Add [[nodiscard]] where ignoring a Result return type is an error
This commit is contained in:
parent
a2e111b8a3
commit
dddde27f6f
6 changed files with 8 additions and 8 deletions
|
|
@ -12,7 +12,7 @@
|
|||
class ArgsManager;
|
||||
|
||||
namespace node {
|
||||
util::Result<void> ApplyArgsManOptions(const ArgsManager& args, BlockManager::Options& opts);
|
||||
[[nodiscard]] util::Result<void> ApplyArgsManOptions(const ArgsManager& args, BlockManager::Options& opts);
|
||||
} // namespace node
|
||||
|
||||
#endif // BITCOIN_NODE_BLOCKMANAGER_ARGS_H
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
class ArgsManager;
|
||||
|
||||
namespace node {
|
||||
util::Result<void> ApplyArgsManOptions(const ArgsManager& args, ChainstateManager::Options& opts);
|
||||
[[nodiscard]] util::Result<void> ApplyArgsManOptions(const ArgsManager& args, ChainstateManager::Options& opts);
|
||||
} // namespace node
|
||||
|
||||
#endif // BITCOIN_NODE_CHAINSTATEMANAGER_ARGS_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue