From faad9d643486ca8cd043e1e0d449e152f0efa69c Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Thu, 11 Jun 2026 21:35:03 +0200 Subject: [PATCH] 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. --- src/btcsignals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; {