[cmake-commits] martink committed CMakeSetupDialog.cpp 1.121 1.122
PathDialog.cpp 1.4 1.5 PropertyList.cpp 1.31 1.32
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Mar 5 09:51:15 EST 2007
Update of /cvsroot/CMake/CMake/Source/MFCDialog
In directory public:/mounts/ram/cvs-serv2235
Modified Files:
CMakeSetupDialog.cpp PathDialog.cpp PropertyList.cpp
Log Message:
ENH: fix compiler warnings
Index: CMakeSetupDialog.cpp
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/MFCDialog/CMakeSetupDialog.cpp,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -d -r1.121 -r1.122
--- CMakeSetupDialog.cpp 19 Feb 2007 16:30:34 -0000 1.121
+++ CMakeSetupDialog.cpp 5 Mar 2007 14:51:12 -0000 1.122
@@ -807,7 +807,7 @@
{
cmCacheManager *cachem = this->m_CMakeInstance->GetCacheManager();
cmCacheManager::CacheIterator it = cachem->NewIterator();
- size_t size = m_CacheEntriesList.GetItems().size();
+
// if there are already entries in the cache, then
// put the new ones in the top, so they show up first
bool reverseOrder = false;
Index: PropertyList.cpp
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/MFCDialog/PropertyList.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- PropertyList.cpp 11 Nov 2006 19:07:46 -0000 1.31
+++ PropertyList.cpp 5 Mar 2007 14:51:13 -0000 1.32
@@ -677,7 +677,7 @@
return (CPropertyItem*)GetItemDataPtr(index);
}
-void CPropertyList::OnRButtonUp( UINT nFlags, CPoint point )
+void CPropertyList::OnRButtonUp( UINT /* nFlags */, CPoint point )
{
CMenu menu;
CRect rect;
@@ -759,7 +759,6 @@
int c = this->GetCount();
for(int i =0; i < c; ++i)
{
- CPropertyItem* pItem = (CPropertyItem*) GetItemDataPtr(0);
this->DeleteString(0);
}
for(std::set<CPropertyItem*>::iterator ii = m_PropertyItems.begin();
Index: PathDialog.cpp
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/MFCDialog/PathDialog.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- PathDialog.cpp 25 Jan 2006 03:20:56 -0000 1.4
+++ PathDialog.cpp 5 Mar 2007 14:51:13 -0000 1.5
@@ -205,7 +205,7 @@
return iResult;
}
-BOOL CPathDialog::IsFileNameValid(LPCTSTR lpFileName)
+BOOL CPathDialog::IsFileNameValid(LPCTSTR /* lpFileName */)
{
return TRUE;
}
@@ -232,7 +232,7 @@
int CPathDialog::MakeSurePathExists(LPCTSTR lpPath)
{
CString strMsg;
- int iRet;
+ int iRet = -1;
try
{
//validate path
@@ -273,7 +273,6 @@
}
AfxMessageBox(strMsg, MB_OK|MB_ICONEXCLAMATION);
-
}
return iRet;
More information about the Cmake-commits
mailing list