From aa4d25153b806a657ac3b4b0f2711f2a126f39b7 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 12 Jan 2014 14:11:59 +0200 Subject: [PATCH] Initialize slot even when unused to silence optimizer warnings --- source/bindable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/bindable.h b/source/bindable.h index 8651c70e..8ea78034 100644 --- a/source/bindable.h +++ b/source/bindable.h @@ -100,6 +100,7 @@ private: void init(const T *o) { cleanup = (o ? &unbind : 0); + slot = 0; if(o) o->bind(); else @@ -168,6 +169,7 @@ private: void init(T *o) { old = T::current(); + slot = 0; cleanup = (o!=old ? &restore : 0); if(o) o->bind(); -- 2.45.2