Skip to content

Commit

Permalink
tools: Add unused argsman to bench_bitcoin
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Apr 16, 2020
1 parent 5447097 commit fa2bc41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/bench/bench_bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/util/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <string>
#include <vector>

class UniValue;
#include <univalue.h> // For util::SettingsValue = UniValue

namespace util {

Expand Down

0 comments on commit fa2bc41

Please sign in to comment.