From b91d1a3f6a1ab144c8c63566853691860b0a9cd4 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 7 Jun 2015 17:49:04 +0200 Subject: [PATCH] Avoid a warning on startup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - duplicate inits are benign, so don’t warn --- simgear/structure/event_mgr.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simgear/structure/event_mgr.cxx b/simgear/structure/event_mgr.cxx index 503bd974..2e4f7b78 100644 --- a/simgear/structure/event_mgr.cxx +++ b/simgear/structure/event_mgr.cxx @@ -58,8 +58,11 @@ void SGEventMgr::unbind() void SGEventMgr::init() { if (_inited) { - SG_LOG(SG_GENERAL, SG_WARN, "duplicate init of SGEventMgr"); + // protected against duplicate calls here, in case + // init ever does something more complex in the future. + return; } + _inited = true; } -- 2.39.5