refactor: Mark btcsignals operator [[nodiscard]]

This is only relevant in case the result_type is not void, in which case
the caller should either use the return value or mark it unused.
This commit is contained in:
MarcoFalke
2026-06-11 21:35:03 +02:00
parent c117bbc467
commit faad9d6434

View File

@@ -200,7 +200,7 @@ public:
* more than one callback is enabled.
*/
template <typename... Args>
result_type operator()(Args&&... args) const EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
[[nodiscard]] result_type operator()(Args&&... args) const EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
{
std::vector<std::shared_ptr<connection_holder>> connections;
{