Skip to content

Commit

Permalink
performance_test: fix bad last argument calling add_arg
Browse files Browse the repository at this point in the history
Coverity 182572
  • Loading branch information
moneromooo-monero committed Sep 27, 2018
1 parent a085da3 commit 7ece155
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/performance_tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ int main(int argc, char** argv)
const command_line::arg_descriptor<bool> arg_verbose = { "verbose", "Verbose output", false };
const command_line::arg_descriptor<bool> arg_stats = { "stats", "Including statistics (min/median)", false };
const command_line::arg_descriptor<unsigned> arg_loop_multiplier = { "loop-multiplier", "Run for that many times more loops", 1 };
command_line::add_arg(desc_options, arg_filter, "");
command_line::add_arg(desc_options, arg_verbose, "");
command_line::add_arg(desc_options, arg_stats, "");
command_line::add_arg(desc_options, arg_loop_multiplier, "");
command_line::add_arg(desc_options, arg_filter);
command_line::add_arg(desc_options, arg_verbose);
command_line::add_arg(desc_options, arg_stats);
command_line::add_arg(desc_options, arg_loop_multiplier);

po::variables_map vm;
bool r = command_line::handle_error_helper(desc_options, [&]()
Expand Down

0 comments on commit 7ece155

Please sign in to comment.