Suppress harmless g++ 4.4 warnings about missing braces.
Put braces around MSW-only wxLogXXX() calls to avoid warnings when building with MinGW 4.4+. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1800,7 +1800,9 @@ wxMsgCatalog *wxResourceTranslationsLoader::LoadCatalog(const wxString& domain,
|
|||||||
domain);
|
domain);
|
||||||
|
|
||||||
if ( !cat )
|
if ( !cat )
|
||||||
|
{
|
||||||
wxLogWarning(_("Resource '%s' is not a valid message catalog."), resname);
|
wxLogWarning(_("Resource '%s' is not a valid message catalog."), resname);
|
||||||
|
}
|
||||||
|
|
||||||
return cat;
|
return cat;
|
||||||
}
|
}
|
||||||
@@ -1847,8 +1849,10 @@ wxArrayString wxResourceTranslationsLoader::GetAvailableTranslations(const wxStr
|
|||||||
{
|
{
|
||||||
const DWORD err = GetLastError();
|
const DWORD err = GetLastError();
|
||||||
if ( err != NO_ERROR && err != ERROR_RESOURCE_TYPE_NOT_FOUND )
|
if ( err != NO_ERROR && err != ERROR_RESOURCE_TYPE_NOT_FOUND )
|
||||||
|
{
|
||||||
wxLogSysError(_("Couldn't enumerate translations"));
|
wxLogSysError(_("Couldn't enumerate translations"));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return data.langs;
|
return data.langs;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user