Changed: #825 Remove all warning when compiling Ryzom

This commit is contained in:
kervala 2010-11-03 13:45:08 +01:00
parent 708d0503a3
commit cbce7633d6
3 changed files with 4 additions and 2 deletions

View file

@ -780,7 +780,7 @@ bool CUnixEventEmitter::processMessage (XEvent &event, CEventServer *server)
createIM(); createIM();
break; break;
case ClientMessage: case ClientMessage:
if ((event.xclient.format == 32) && (event.xclient.data.l[0] == XA_WM_DELETE_WINDOW)) if ((event.xclient.format == 32) && ((Atom)event.xclient.data.l[0] == XA_WM_DELETE_WINDOW))
{ {
server->postEvent(new CEventDestroyWindow(this)); server->postEvent(new CEventDestroyWindow(this));
} }

View file

@ -22,6 +22,8 @@
#include "nel/misc/events.h" #include "nel/misc/events.h"
#include "nel/misc/game_device_events.h" #include "nel/misc/game_device_events.h"
#include "nel/3d/driver.h"
#if defined(NL_OS_UNIX) && !defined(NL_OS_MAC) #if defined(NL_OS_UNIX) && !defined(NL_OS_MAC)
#include <X11/Xlib.h> #include <X11/Xlib.h>

View file

@ -231,7 +231,7 @@ namespace NLQT
} }
else else
{ //if (!file.open()) { //if (!file.open())
nlerror("Can't open the file %s for writing.", s); nlerror("Can't open the file %s for writing.", s.c_str());
} }
} }