diff options
| author | practicalswift <[email protected]> | 2018-09-25 07:00:36 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-11-05 17:03:11 +0100 |
| commit | 9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a (patch) | |
| tree | c3cd7df7ea0228dee67b7160ba960a6eba5bbac4 /src/util/system.h | |
| parent | tests: Explicitly ignore the return value of DecodeBase58(...) (diff) | |
| download | discoin-9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a.tar.xz discoin-9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a.zip | |
Add NODISCARD to all {Decode,Parse}[...](...) functions returning bool. Sort includes.
Diffstat (limited to 'src/util/system.h')
| -rw-r--r-- | src/util/system.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/system.h b/src/util/system.h index 5634b8dd6..bebb089a2 100644 --- a/src/util/system.h +++ b/src/util/system.h @@ -14,6 +14,7 @@ #include <config/bitcoin-config.h> #endif +#include <attributes.h> #include <compat.h> #include <fs.h> #include <logging.h> @@ -159,7 +160,7 @@ public: */ void SelectConfigNetwork(const std::string& network); - bool ParseParameters(int argc, const char* const argv[], std::string& error); + NODISCARD bool ParseParameters(int argc, const char* const argv[], std::string& error); bool ReadConfigFiles(std::string& error, bool ignore_invalid_keys = false); /** |