summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog/PathDialog.cpp
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-03-05 14:51:13 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-03-05 14:51:13 (GMT)
commitd443963d91c33579fa4774a698b21c4b5ff3cbeb (patch)
tree3673132d01c8ae3eaccb989325f8703eb08e2c8e /Source/MFCDialog/PathDialog.cpp
parent1263baec63215fde5fc932b18493afd51e6a0b2d (diff)
downloadCMake-d443963d91c33579fa4774a698b21c4b5ff3cbeb.zip
CMake-d443963d91c33579fa4774a698b21c4b5ff3cbeb.tar.gz
CMake-d443963d91c33579fa4774a698b21c4b5ff3cbeb.tar.bz2
ENH: fix compiler warnings
Diffstat (limited to 'Source/MFCDialog/PathDialog.cpp')
-rw-r--r--Source/MFCDialog/PathDialog.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/MFCDialog/PathDialog.cpp b/Source/MFCDialog/PathDialog.cpp
index c397216..d7bd427 100644
--- a/Source/MFCDialog/PathDialog.cpp
+++ b/Source/MFCDialog/PathDialog.cpp
@@ -205,7 +205,7 @@ int CPathDialog::DoModal()
return iResult;
}
-BOOL CPathDialog::IsFileNameValid(LPCTSTR lpFileName)
+BOOL CPathDialog::IsFileNameValid(LPCTSTR /* lpFileName */)
{
return TRUE;
}
@@ -232,7 +232,7 @@ const TCHAR c_szErrCreatePath[] = _T(
int CPathDialog::MakeSurePathExists(LPCTSTR lpPath)
{
CString strMsg;
- int iRet;
+ int iRet = -1;
try
{
//validate path
@@ -273,7 +273,6 @@ int CPathDialog::MakeSurePathExists(LPCTSTR lpPath)
}
AfxMessageBox(strMsg, MB_OK|MB_ICONEXCLAMATION);
-
}
return iRet;