Remove warnings

This commit is contained in:
Bill Hoffman 2002-03-13 15:29:26 -05:00
parent 6349735590
commit 7c73456401
3 changed files with 6 additions and 6 deletions

View File

@ -63,7 +63,7 @@ BOOL CMakeSetup::InitInstance()
CMakeSetupDialog dlg(cmdInfo); CMakeSetupDialog dlg(cmdInfo);
m_pMainWnd = &dlg; m_pMainWnd = &dlg;
int nResponse = dlg.DoModal(); INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK) if (nResponse == IDOK)
{ {
// TODO: Place code here to handle when the dialog is // TODO: Place code here to handle when the dialog is

View File

@ -601,7 +601,7 @@ void CMakeSetupDialog::OnChangeWhereBuild()
// copy from the cache manager to the cache edit list box // copy from the cache manager to the cache edit list box
void CMakeSetupDialog::FillCacheGUIFromCacheManager() void CMakeSetupDialog::FillCacheGUIFromCacheManager()
{ {
int size = m_CacheEntriesList.GetItems().size(); size_t size = m_CacheEntriesList.GetItems().size();
bool reverseOrder = false; bool reverseOrder = false;
// 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
@ -830,8 +830,8 @@ void CMakeSetupDialog::OnSize(UINT nType, int cx, int cy)
m_VersionDisplay.SetWindowPos(&wndTop, 5, cy-23, 0, 0, m_VersionDisplay.SetWindowPos(&wndTop, 5, cy-23, 0, 0,
SWP_NOSIZE | SWP_NOZORDER); SWP_NOSIZE | SWP_NOZORDER);
deltax = deltax + m_deltaXRemainder; deltax = int(deltax + m_deltaXRemainder);
m_deltaXRemainder = deltax%2; m_deltaXRemainder = float(deltax%2);
m_MouseHelp.GetWindowRect(&cRect); m_MouseHelp.GetWindowRect(&cRect);
this->ScreenToClient(&cRect); this->ScreenToClient(&cRect);
m_MouseHelp.SetWindowPos(&wndTop, cRect.left + deltax/2, m_MouseHelp.SetWindowPos(&wndTop, cRect.left + deltax/2,

View File

@ -293,7 +293,7 @@ int CPathDialog::Touch(LPCTSTR lpPath, BOOL bValidate)
TCHAR szPath[MAX_PATH]; TCHAR szPath[MAX_PATH];
_tcscpy(szPath, lpPath); _tcscpy(szPath, lpPath);
int nLen = _tcslen(szPath); size_t nLen = _tcslen(szPath);
int i; int i;
if(nLen==3) if(nLen==3)
@ -355,7 +355,7 @@ int CPathDialog::ConcatPath(LPTSTR lpRoot, LPCTSTR lpMorePath)
return 1; return 1;
} }
int nLen = _tcslen(lpRoot); size_t nLen = _tcslen(lpRoot);
if(nLen<3) if(nLen<3)
{ {