Changed: #825 Remove all warning when compiling Ryzom

This commit is contained in:
kervala 2010-10-17 15:26:57 +02:00
parent b1cdc3e67e
commit a044d8a5e7
4 changed files with 8 additions and 9 deletions

View file

@ -341,7 +341,7 @@ CDriverGL::~CDriverGL()
{
H_AUTO_OGL(CDriverGL_CDriverGLDtor)
release();
#if defined(NL_OS_MAC)
[_autoreleasePool release];
#endif
@ -362,8 +362,8 @@ bool CDriverGL::setupDisplay()
nlinfo("3D: %s", lines[i].c_str());
#ifdef NL_OS_WINDOWS
NL3D::registerWGlExtensions (_Extensions, _hDC);
#endif // ifdef NL_OS_WINDOWS
NL3D::registerWGlExtensions(_Extensions, _hDC);
#endif // NL_OS_WINDOWS
// Check required extensions!!
// ARBMultiTexture is a OpenGL 1.2 required extension.
@ -851,7 +851,6 @@ bool CDriverGL::swapBuffers()
}
}
#ifdef NL_OS_WINDOWS
if (_EventEmitter.getNumEmitters() > 1) // is direct input running ?
{

View file

@ -135,7 +135,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
case SC_MONITORPOWER:
// Prevent From Happening
return 0;
return 0;
default:
break;

View file

@ -1083,7 +1083,7 @@ int CIXml::getIntProperty(xmlNodePtr node, const char *property, int defaultValu
return defaultValue;
s=s.strip();
int val=s.atoi();
sint val=s.atoi();
if (val==0 && s!="0")
{
nlwarning("bad integer value: %s",s.c_str());

View file

@ -128,11 +128,11 @@ bool CWinEventEmitter::processMessage (HWND hWnd, uint32 msg, WPARAM wParam, LPA
if (_KeyboardEventsEnabled)
{
// Ctrl, shit or alt ?
if ((int)wParam==VK_MENU)
if ((sint)wParam==VK_MENU)
_AltButton=true;
if ((int)wParam==VK_CONTROL)
if ((sint)wParam==VK_CONTROL)
_CtrlButton=true;
if ((int)wParam==VK_SHIFT)
if ((sint)wParam==VK_SHIFT)
_ShiftButton=true;
// Post the message