diff --git a/src/tests/libxrpl/nodestore/NuDBFactory.cpp b/src/tests/libxrpl/nodestore/NuDBFactory.cpp index 09d398fa14..33afe573da 100644 --- a/src/tests/libxrpl/nodestore/NuDBFactory.cpp +++ b/src/tests/libxrpl/nodestore/NuDBFactory.cpp @@ -61,6 +61,11 @@ runRoundTrip(Section const& params, std::size_t expectedBlocksize) EXPECT_EQ(batch, copy); } +// The round below and its two constants are used only by the write-stats tests, +// which are themselves compiled in with telemetry. Outside this guard the round +// is an unused function in a build without telemetry, which -Werror rejects. +#ifdef XRPL_ENABLE_TELEMETRY + /** * Threads used by the overlapping-insert round below. */ @@ -145,6 +150,8 @@ runOverlappingInsertRound(Backend& backend, int round) th.join(); } +#endif // XRPL_ENABLE_TELEMETRY + } // namespace TEST(NuDBFactory, default_block_size)