mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-28 15:58:07 +00:00
Mirror::store() and Mirror::changedTo() silenced an unused parameter with a (void) cast in their telemetry-disabled arm. The warning was real: Mirror<uint256> is instantiated in InboundTransactions.cpp. store()'s #else arm held nothing else, so it collapses to a bare #endif; changedTo() keeps its #else for the return. readProcFile() and measuredTrim() are added by this PR and gain [[nodiscard]]. MallocTrim.cpp predates the telemetry work, but neither function exists on develop, so this annotates declarations this branch authored rather than surrounding code. No caller discards either.