mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 22:18:53 +00:00
performance_test: fix bad last argument calling add_arg
Coverity 182572
This commit is contained in:
parent
a085da3247
commit
7ece1550e1
@ -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_verbose = { "verbose", "Verbose output", false };
|
||||||
const command_line::arg_descriptor<bool> arg_stats = { "stats", "Including statistics (min/median)", 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 };
|
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_filter);
|
||||||
command_line::add_arg(desc_options, arg_verbose, "");
|
command_line::add_arg(desc_options, arg_verbose);
|
||||||
command_line::add_arg(desc_options, arg_stats, "");
|
command_line::add_arg(desc_options, arg_stats);
|
||||||
command_line::add_arg(desc_options, arg_loop_multiplier, "");
|
command_line::add_arg(desc_options, arg_loop_multiplier);
|
||||||
|
|
||||||
po::variables_map vm;
|
po::variables_map vm;
|
||||||
bool r = command_line::handle_error_helper(desc_options, [&]()
|
bool r = command_line::handle_error_helper(desc_options, [&]()
|
||||||
|
Loading…
Reference in New Issue
Block a user