From: Vadim Zeitlin Date: Wed, 22 Jul 1998 11:33:15 +0000 (+0000) Subject: warning under gcc removed X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7228ab483e3b0fc1d341d4cf1723e5c39096c63e warning under gcc removed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index d0c6ac8062..5ae5d75b8a 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -982,7 +982,8 @@ bool wxFileConfig::ConfigGroup::DeleteSubgroup(const char *szName) // go back until we find a subgroup or reach the group's line ConfigGroup *pNewLast = NULL; uint n, nSubgroups = m_aSubgroups.Count(); - for ( LineList *pl = pLine->Prev(); pl != m_pLine; pl = pl->Prev() ) { + LineList *pl; + for ( pl = pLine->Prev(); pl != m_pLine; pl = pl->Prev() ) { // is it our subgroup? for ( n = 0; (pNewLast == NULL) && (n < nSubgroups); n++ ) { // do _not_ call GetGroupLine! we don't want to add it to the local @@ -1032,7 +1033,8 @@ bool wxFileConfig::ConfigGroup::DeleteEntry(const char *szName) // go back until we find another entry or reach the group's line ConfigEntry *pNewLast = NULL; uint n, nEntries = m_aEntries.Count(); - for ( LineList *pl = pLine->Prev(); pl != m_pLine; pl = pl->Prev() ) { + LineList *pl; + for ( pl = pLine->Prev(); pl != m_pLine; pl = pl->Prev() ) { // is it our subgroup? for ( n = 0; (pNewLast == NULL) && (n < nEntries); n++ ) { if ( m_aEntries[n]->GetLine() == m_pLine )