mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-27 07:26:51 +00:00
With telemetry compiled out, <string_view> in Telemetry.h and <memory> in SpanGuard.h are named only by declarations that are themselves guarded, so clang-tidy's include-cleaner reports them unused and warnings-as-errors fails the build. NullTelemetry.cpp has the mirror problem: it names beast::Journal only in the compiled-out makeTelemetry(), reaching the type transitively. Guard each include to match the configuration that uses it, and correct three comments that overstated what the empty destructors cost.