From fa2bc4141df59f2e38fef863723b433250295d20 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Wed, 15 Apr 2020 18:53:08 -0400 Subject: tools: Add unused argsman to bench_bitcoin --- src/bench/bench_bitcoin.cpp | 5 +++-- src/util/settings.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/bench/bench_bitcoin.cpp b/src/bench/bench_bitcoin.cpp index 2d44264e53..eeb423c1d2 100644 --- a/src/bench/bench_bitcoin.cpp +++ b/src/bench/bench_bitcoin.cpp @@ -17,7 +17,7 @@ static const char* DEFAULT_PLOT_PLOTLYURL = "https://cdn.plot.ly/plotly-latest.m static const int64_t DEFAULT_PLOT_WIDTH = 1024; static const int64_t DEFAULT_PLOT_HEIGHT = 768; -static void SetupBenchArgs() +static void SetupBenchArgs(ArgsManager& argsman) { SetupHelpOptions(gArgs); @@ -33,7 +33,8 @@ static void SetupBenchArgs() int main(int argc, char** argv) { - SetupBenchArgs(); + ArgsManager argsman; + SetupBenchArgs(argsman); std::string error; if (!gArgs.ParseParameters(argc, argv, error)) { tfm::format(std::cerr, "Error parsing command line arguments: %s\n", error); diff --git a/src/util/settings.h b/src/util/settings.h index 1d03639fa2..bbb6abe2c0 100644 --- a/src/util/settings.h +++ b/src/util/settings.h @@ -9,7 +9,7 @@ #include #include -class UniValue; +#include // For util::SettingsValue = UniValue namespace util { -- cgit v1.2.3