From d75b27f6dc3a5878672cd40b26a368eeee21356c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 27 Apr 2015 04:58:53 +0200 Subject: [PATCH] allow to compile PBD::Signals w/o connection debugging --- libs/pbd/pbd/signals.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/pbd/pbd/signals.h b/libs/pbd/pbd/signals.h index ef53770613..983c56c6de 100644 --- a/libs/pbd/pbd/signals.h +++ b/libs/pbd/pbd/signals.h @@ -39,7 +39,9 @@ #include "pbd/libpbd_visibility.h" #include "pbd/event_loop.h" +#ifndef NDEBUG #define DEBUG_PBD_SIGNAL_CONNECTIONS +#endif #ifdef DEBUG_PBD_SIGNAL_CONNECTIONS #include "pbd/stacktrace.h" @@ -53,7 +55,11 @@ class LIBPBD_API Connection; class LIBPBD_API SignalBase { public: - SignalBase () : _debug_connection (false) {} + SignalBase () +#ifdef DEBUG_PBD_SIGNAL_CONNECTIONS + : _debug_connection (false) +#endif + {} virtual ~SignalBase () {} virtual void disconnect (boost::shared_ptr) = 0; #ifdef DEBUG_PBD_SIGNAL_CONNECTIONS