refactor: Annotate MakeAndPushFeature with [[maybe_unused]]

This is a follow-up to bitcoin/bitcoin#35221. The `MakeAndPushFeature`
member function template has no callers yet, which triggers
`-Wunused-template` now that Clang 23 enables it as part of `-Wall`.
This commit is contained in:
Hennadii Stepanov
2026-08-03 17:20:08 +01:00
parent 1ed14c6122
commit 0238aebf61

View File

@@ -804,7 +804,7 @@ private:
m_connman.PushMessage(&node, NetMsg::Make(std::move(msg_type), std::forward<Args>(args)...));
}
template <typename... Args>
void MakeAndPushFeature(CNode& node, std::string_view feature_id, Args&&... args) const
[[maybe_unused]] void MakeAndPushFeature(CNode& node, std::string_view feature_id, Args&&... args) const
{
if (!Assume(feature_id.size() >= 4 && feature_id.size() <= MAX_FEATUREID_LENGTH)) return;
std::vector<unsigned char> feature_data;