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/outputtype.h | |
parent | 579497e77a3a71b2d8e44a6a3e00a8a46366d5c0 (diff) | |
download | bitcoin-9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a.tar.xz |
Add NODISCARD to all {Decode,Parse}[...](...) functions returning bool. Sort includes.
Diffstat (limited to 'src/outputtype.h')
-rw-r--r-- | src/outputtype.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/outputtype.h b/src/outputtype.h index 4c4d93bc8b..6c30fd1950 100644 --- a/src/outputtype.h +++ b/src/outputtype.h @@ -6,6 +6,7 @@ #ifndef BITCOIN_OUTPUTTYPE_H #define BITCOIN_OUTPUTTYPE_H +#include <attributes.h> #include <keystore.h> #include <script/standard.h> @@ -26,7 +27,7 @@ enum class OutputType { CHANGE_AUTO, }; -bool ParseOutputType(const std::string& str, OutputType& output_type); +NODISCARD bool ParseOutputType(const std::string& str, OutputType& output_type); const std::string& FormatOutputType(OutputType type); /** |