Changed: #825 Remove all warning when compiling Ryzom

This commit is contained in:
kervala 2010-08-05 18:57:15 +02:00
parent 1ce824c4f5
commit 21f708b5b8
3 changed files with 15 additions and 6 deletions

View file

@ -191,7 +191,7 @@ BOOL CClientConfigApp::InitInstance()
DestroyWindow (SlashScreen); DestroyWindow (SlashScreen);
int nResponse = dlg.DoModal(); sint nResponse = (sint)dlg.DoModal();
if (nResponse == IDOK) if (nResponse == IDOK)
{ {
// dismissed with OK // dismissed with OK

View file

@ -320,7 +320,7 @@ void CClient_configDlg::translateTree ()
while (item) while (item)
{ {
// Set the item text // Set the item text
uint page = Tree.GetItemData (item); uint page = (uint)Tree.GetItemData (item);
ucstring name = NLMISC::CI18N::get (Pages[page].Name); ucstring name = NLMISC::CI18N::get (Pages[page].Name);
if (NLMISC::CSystemUtils::supportUnicode()) if (NLMISC::CSystemUtils::supportUnicode())
{ {
@ -416,7 +416,7 @@ void CClient_configDlg::OnPaint()
dc.SetBkMode (TRANSPARENT); dc.SetBkMode (TRANSPARENT);
dc.SelectObject (&BarFont); dc.SelectObject (&BarFont);
CRect labelRect (LARGE_LABEL_START_X, LARGE_LABEL_START_Y, LARGE_LABEL_END_X, LARGE_LABEL_END_Y); CRect labelRect (LARGE_LABEL_START_X, LARGE_LABEL_START_Y, LARGE_LABEL_END_X, LARGE_LABEL_END_Y);
DrawTextW (&(*dc), (WCHAR*)TopLargeLabel.c_str (), TopLargeLabel.size (), &labelRect, DT_LEFT|DT_TOP); DrawTextW (&(*dc), (WCHAR*)TopLargeLabel.c_str (), (sint)TopLargeLabel.size (), &labelRect, DT_LEFT|DT_TOP);
CDialog::OnPaint(); CDialog::OnPaint();
} }
@ -471,8 +471,8 @@ BOOL CClient_configDlg::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
if (item) if (item)
{ {
// Get the page // Get the page
uint pageId = Tree.GetItemData (item); uint pageId = (uint)Tree.GetItemData (item);
setPage (pageId) ; setPage (pageId);
} }
} }
break; break;

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="Windows-1252"?> <?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject <VisualStudioProject
ProjectType="Visual C++" ProjectType="Visual C++"
Version="9.00" Version="9,00"
Name="ryzom_configuration" Name="ryzom_configuration"
ProjectGUID="{739618D3-04B6-4EB1-BAED-53D3217F5A86}" ProjectGUID="{739618D3-04B6-4EB1-BAED-53D3217F5A86}"
RootNamespace="empty_exe" RootNamespace="empty_exe"
@ -127,6 +127,7 @@
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
SmallerTypeCheck="true" SmallerTypeCheck="true"
RuntimeLibrary="3" RuntimeLibrary="3"
UsePrecompiledHeader="2"
WarningLevel="3" WarningLevel="3"
DebugInformationFormat="3" DebugInformationFormat="3"
/> />
@ -457,6 +458,14 @@
<File <File
RelativePath=".\StdAfx.cpp" RelativePath=".\StdAfx.cpp"
> >
<FileConfiguration
Name="Debug|x64"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
/>
</FileConfiguration>
<FileConfiguration <FileConfiguration
Name="Release|Win32" Name="Release|Win32"
> >