mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-14 07:01:16 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user