diff --git a/src/btcsignals.h b/src/btcsignals.h index 9eeca769961..94625edd3cf 100644 --- a/src/btcsignals.h +++ b/src/btcsignals.h @@ -200,7 +200,7 @@ public: * more than one callback is enabled. */ template - 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> connections; {