Changed: #825 Remove all warning when compiling Ryzom
This commit is contained in:
parent
d3aec1d246
commit
beaeccf2ce
4 changed files with 8 additions and 9 deletions
|
@ -341,7 +341,7 @@ CDriverGL::~CDriverGL()
|
||||||
{
|
{
|
||||||
H_AUTO_OGL(CDriverGL_CDriverGLDtor)
|
H_AUTO_OGL(CDriverGL_CDriverGLDtor)
|
||||||
release();
|
release();
|
||||||
|
|
||||||
#if defined(NL_OS_MAC)
|
#if defined(NL_OS_MAC)
|
||||||
[_autoreleasePool release];
|
[_autoreleasePool release];
|
||||||
#endif
|
#endif
|
||||||
|
@ -362,8 +362,8 @@ bool CDriverGL::setupDisplay()
|
||||||
nlinfo("3D: %s", lines[i].c_str());
|
nlinfo("3D: %s", lines[i].c_str());
|
||||||
|
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
NL3D::registerWGlExtensions (_Extensions, _hDC);
|
NL3D::registerWGlExtensions(_Extensions, _hDC);
|
||||||
#endif // ifdef NL_OS_WINDOWS
|
#endif // NL_OS_WINDOWS
|
||||||
|
|
||||||
// Check required extensions!!
|
// Check required extensions!!
|
||||||
// ARBMultiTexture is a OpenGL 1.2 required extension.
|
// ARBMultiTexture is a OpenGL 1.2 required extension.
|
||||||
|
@ -851,7 +851,6 @@ bool CDriverGL::swapBuffers()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
if (_EventEmitter.getNumEmitters() > 1) // is direct input running ?
|
if (_EventEmitter.getNumEmitters() > 1) // is direct input running ?
|
||||||
{
|
{
|
||||||
|
|
|
@ -135,7 +135,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
|
||||||
case SC_MONITORPOWER:
|
case SC_MONITORPOWER:
|
||||||
|
|
||||||
// Prevent From Happening
|
// Prevent From Happening
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1083,7 +1083,7 @@ int CIXml::getIntProperty(xmlNodePtr node, const char *property, int defaultValu
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
|
|
||||||
s=s.strip();
|
s=s.strip();
|
||||||
int val=s.atoi();
|
sint val=s.atoi();
|
||||||
if (val==0 && s!="0")
|
if (val==0 && s!="0")
|
||||||
{
|
{
|
||||||
nlwarning("bad integer value: %s",s.c_str());
|
nlwarning("bad integer value: %s",s.c_str());
|
||||||
|
|
|
@ -128,11 +128,11 @@ bool CWinEventEmitter::processMessage (HWND hWnd, uint32 msg, WPARAM wParam, LPA
|
||||||
if (_KeyboardEventsEnabled)
|
if (_KeyboardEventsEnabled)
|
||||||
{
|
{
|
||||||
// Ctrl, shit or alt ?
|
// Ctrl, shit or alt ?
|
||||||
if ((int)wParam==VK_MENU)
|
if ((sint)wParam==VK_MENU)
|
||||||
_AltButton=true;
|
_AltButton=true;
|
||||||
if ((int)wParam==VK_CONTROL)
|
if ((sint)wParam==VK_CONTROL)
|
||||||
_CtrlButton=true;
|
_CtrlButton=true;
|
||||||
if ((int)wParam==VK_SHIFT)
|
if ((sint)wParam==VK_SHIFT)
|
||||||
_ShiftButton=true;
|
_ShiftButton=true;
|
||||||
|
|
||||||
// Post the message
|
// Post the message
|
||||||
|
|
Loading…
Reference in a new issue