diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-09-25 07:00:36 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-11-05 17:03:11 +0100 |
commit | 9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a (patch) | |
tree | c3cd7df7ea0228dee67b7160ba960a6eba5bbac4 /src/util/system.h | |
parent | 579497e77a3a71b2d8e44a6a3e00a8a46366d5c0 (diff) | |
download | bitcoin-9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a.tar.xz |
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 5634b8dd61..bebb089a2a 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); /** |