diff options
author | Ken Martin <ken.martin@kitware.com> | 2007-03-05 14:51:13 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2007-03-05 14:51:13 (GMT) |
commit | d443963d91c33579fa4774a698b21c4b5ff3cbeb (patch) | |
tree | 3673132d01c8ae3eaccb989325f8703eb08e2c8e /Source/MFCDialog/PathDialog.cpp | |
parent | 1263baec63215fde5fc932b18493afd51e6a0b2d (diff) | |
download | CMake-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.cpp | 5 |
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; |