From 8943adf579ab370f4985ae3fc0d105919879a833 Mon Sep 17 00:00:00 2001 From: Jared Tate <13957390+JaredTate@users.noreply.github.com> Date: Thu, 14 Mar 2024 17:03:44 -0600 Subject: [PATCH] Disable Benchmarks For Default Compiling --- configure.ac | 2 +- src/bench/block_assemble.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 596a2042fc..cdda5ec1ff 100644 --- a/configure.ac +++ b/configure.ac @@ -175,7 +175,7 @@ AC_ARG_ENABLE(gui-tests, AC_ARG_ENABLE(bench, AS_HELP_STRING([--disable-bench],[do not compile benchmarks (default is to compile)]), [use_bench=$enableval], - [use_bench=yes]) + [use_bench=no]) AC_ARG_ENABLE([extended-functional-tests], AS_HELP_STRING([--enable-extended-functional-tests],[enable expensive functional tests when using lcov (default no)]), diff --git a/src/bench/block_assemble.cpp b/src/bench/block_assemble.cpp index c93d8dbe91..e38a7d9b9a 100644 --- a/src/bench/block_assemble.cpp +++ b/src/bench/block_assemble.cpp @@ -25,7 +25,7 @@ static void AssembleBlock(benchmark::Bench& bench) // Collect some loose transactions that spend the coinbases of our mined blocks constexpr size_t NUM_BLOCKS{130}; - std::array txs; + std::array txs; for (size_t b{0}; b < NUM_BLOCKS; ++b) { CMutableTransaction tx; tx.vin.push_back(MineBlock(test_setup->m_node, P2WSH_OP_TRUE));