From: James Turner Date: Sun, 7 Jun 2015 15:49:04 +0000 (+0200) Subject: Avoid a warning on startup X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b91d1a3f6a1ab144c8c63566853691860b0a9cd4;p=simgear.git Avoid a warning on startup - duplicate inits are benign, so don’t warn --- 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; }