get rid of unused variable warning

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-10-12 22:30:04 +00:00
parent 6b6b233ac0
commit 71179c67de

View File

@@ -303,12 +303,12 @@ int IfaceCheckApp::CompareClasses(const wxClass* iface, const wxClass* api)
if (!real) if (!real)
{ {
bool exit = false;
wxMethodPtrArray overloads = wxMethodPtrArray overloads =
api->RecursiveUpwardFindMethodsNamed(m.GetName(), &m_gccInterface); api->RecursiveUpwardFindMethodsNamed(m.GetName(), &m_gccInterface);
#define HACK_TO_AUTO_CORRECT_ONLY_METHOD_ATTRIBUTES 0 #define HACK_TO_AUTO_CORRECT_ONLY_METHOD_ATTRIBUTES 0
#if HACK_TO_AUTO_CORRECT_ONLY_METHOD_ATTRIBUTES #if HACK_TO_AUTO_CORRECT_ONLY_METHOD_ATTRIBUTES
bool exit = false;
for (unsigned int k=0; k<overloads.GetCount(); k++) for (unsigned int k=0; k<overloads.GetCount(); k++)
if (overloads[k]->MatchesExceptForAttributes(m) && if (overloads[k]->MatchesExceptForAttributes(m) &&
overloads[k]->IsPureVirtual() == m.IsPureVirtual()) overloads[k]->IsPureVirtual() == m.IsPureVirtual())
@@ -327,7 +327,7 @@ int IfaceCheckApp::CompareClasses(const wxClass* iface, const wxClass* api)
if (!exit) if (!exit)
{ {
#endif #endif // HACK_TO_AUTO_CORRECT_ONLY_METHOD_ATTRIBUTES
if (overloads.GetCount()==0) if (overloads.GetCount()==0)
{ {