git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59482
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
catch ( ... )
{
- wxEventLoopBase *loop = wxEventLoopBase::GetActive();
+ // notice that we do it in 2 steps to avoid warnings about possibly
+ // uninitialized loop variable from some versions of g++ which are not
+ // smart enough to figure out that GetActive() doesn't throw and so
+ // that loop will always be initialized
+ wxEventLoopBase *loop = NULL;
try
{
+ loop = wxEventLoopBase::GetActive();
+
if ( !wxTheApp || !wxTheApp->OnExceptionInMainLoop() )
{
if ( loop )
m_WParser->OpenContainer();
// the header should be rendered in bold by default
- int boldOld wxDUMMY_INITIALIZE(0);
+ int boldOld = 0;
if ( isHeader )
{
boldOld = m_WParser->GetFontBold();