ENH: fix compiler warnings

This commit is contained in:
Ken Martin 2007-03-05 09:51:13 -05:00
parent 1263baec63
commit d443963d91
3 changed files with 4 additions and 6 deletions

View File

@ -807,7 +807,7 @@ void CMakeSetupDialog::FillCacheGUIFromCacheManager()
{ {
cmCacheManager *cachem = this->m_CMakeInstance->GetCacheManager(); cmCacheManager *cachem = this->m_CMakeInstance->GetCacheManager();
cmCacheManager::CacheIterator it = cachem->NewIterator(); cmCacheManager::CacheIterator it = cachem->NewIterator();
size_t size = m_CacheEntriesList.GetItems().size();
// if there are already entries in the cache, then // if there are already entries in the cache, then
// put the new ones in the top, so they show up first // put the new ones in the top, so they show up first
bool reverseOrder = false; bool reverseOrder = false;

View File

@ -205,7 +205,7 @@ int CPathDialog::DoModal()
return iResult; return iResult;
} }
BOOL CPathDialog::IsFileNameValid(LPCTSTR lpFileName) BOOL CPathDialog::IsFileNameValid(LPCTSTR /* lpFileName */)
{ {
return TRUE; return TRUE;
} }
@ -232,7 +232,7 @@ const TCHAR c_szErrCreatePath[] = _T(
int CPathDialog::MakeSurePathExists(LPCTSTR lpPath) int CPathDialog::MakeSurePathExists(LPCTSTR lpPath)
{ {
CString strMsg; CString strMsg;
int iRet; int iRet = -1;
try try
{ {
//validate path //validate path
@ -273,7 +273,6 @@ int CPathDialog::MakeSurePathExists(LPCTSTR lpPath)
} }
AfxMessageBox(strMsg, MB_OK|MB_ICONEXCLAMATION); AfxMessageBox(strMsg, MB_OK|MB_ICONEXCLAMATION);
} }
return iRet; return iRet;

View File

@ -677,7 +677,7 @@ CPropertyItem* CPropertyList::GetItem(int index)
return (CPropertyItem*)GetItemDataPtr(index); return (CPropertyItem*)GetItemDataPtr(index);
} }
void CPropertyList::OnRButtonUp( UINT nFlags, CPoint point ) void CPropertyList::OnRButtonUp( UINT /* nFlags */, CPoint point )
{ {
CMenu menu; CMenu menu;
CRect rect; CRect rect;
@ -759,7 +759,6 @@ void CPropertyList::RemoveAll()
int c = this->GetCount(); int c = this->GetCount();
for(int i =0; i < c; ++i) for(int i =0; i < c; ++i)
{ {
CPropertyItem* pItem = (CPropertyItem*) GetItemDataPtr(0);
this->DeleteString(0); this->DeleteString(0);
} }
for(std::set<CPropertyItem*>::iterator ii = m_PropertyItems.begin(); for(std::set<CPropertyItem*>::iterator ii = m_PropertyItems.begin();