From 9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a Mon Sep 17 00:00:00 2001 From: practicalswift Date: Tue, 25 Sep 2018 07:00:36 +0200 Subject: Add NODISCARD to all {Decode,Parse}[...](...) functions returning bool. Sort includes. --- src/script/descriptor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script') diff --git a/src/script/descriptor.cpp b/src/script/descriptor.cpp index 90c4ddcc11..d343972c40 100644 --- a/src/script/descriptor.cpp +++ b/src/script/descriptor.cpp @@ -478,7 +478,7 @@ std::vector> Split(const Span& sp, char sep) } /** Parse a key path, being passed a split list of elements (the first element is ignored). */ -bool ParseKeyPath(const std::vector>& split, KeyPath& out) +NODISCARD bool ParseKeyPath(const std::vector>& split, KeyPath& out) { for (size_t i = 1; i < split.size(); ++i) { Span elem = split[i]; -- cgit v1.2.3