From: Gunnar Beutner Date: Thu, 27 Aug 2015 12:31:24 +0000 (+0200) Subject: Fix compiler warning X-Git-Tag: v2.4.0~359 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=865344ec57efa1f661b327f7c0e3203d6521c5b6;p=icinga2 Fix compiler warning fixes #10012 --- diff --git a/tools/mkclass/classcompiler.cpp b/tools/mkclass/classcompiler.cpp index 12de1cbb3..91d035869 100644 --- a/tools/mkclass/classcompiler.cpp +++ b/tools/mkclass/classcompiler.cpp @@ -754,10 +754,9 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&) m_Impl << it->SetAccessor << std::endl << std::endl; if (it->Type.IsName || !it->TrackAccessor.empty()) { - m_Impl << "\t" << "ConfigObject *dobj = dynamic_cast(this);" << std::endl; - if (it->Name != "active") { - m_Impl << "\t" << "if (!dobj || dobj->IsActive())" << std::endl + m_Impl << "\t" << "ConfigObject *dobj = dynamic_cast(this);" << std::endl + << "\t" << "if (!dobj || dobj->IsActive())" << std::endl << "\t"; }