aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-11-20 18:41:32 -0500
committerMarcoFalke <falke.marco@gmail.com>2018-11-20 19:51:49 -0500
commitfa21ca09a807e18476babe2651ad62df6477bbf0 (patch)
tree539e5c07937b9d82f5e8c59a199a2bd3570a0aa1 /src/util
parent6d58a5c3b05585b01c960776e00856637ff1794d (diff)
test: Add BOOST_REQUIRE to getters returning optional
Diffstat (limited to 'src/util')
-rw-r--r--src/util/system.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/system.h b/src/util/system.h
index bebb089a2a..85e4c8e6cd 100644
--- a/src/util/system.h
+++ b/src/util/system.h
@@ -150,7 +150,7 @@ protected:
std::set<std::string> m_network_only_args GUARDED_BY(cs_args);
std::map<OptionsCategory, std::map<std::string, Arg>> m_available_args GUARDED_BY(cs_args);
- bool ReadConfigStream(std::istream& stream, std::string& error, bool ignore_invalid_keys = false);
+ NODISCARD bool ReadConfigStream(std::istream& stream, std::string& error, bool ignore_invalid_keys = false);
public:
ArgsManager();
@@ -161,7 +161,7 @@ public:
void SelectConfigNetwork(const std::string& network);
NODISCARD bool ParseParameters(int argc, const char* const argv[], std::string& error);
- bool ReadConfigFiles(std::string& error, bool ignore_invalid_keys = false);
+ NODISCARD bool ReadConfigFiles(std::string& error, bool ignore_invalid_keys = false);
/**
* Log warnings for options in m_section_only_args when