From a221b39585d15df0d30581ed29a9d300b57dc7b3 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 10 Mar 2011 23:22:27 +0100 Subject: [PATCH] Changed: #825 Remove all warnings when compiling Ryzom --- code/nel/include/nel/misc/bitmap.h | 12 +++--------- .../src/3d/driver/opengl/driver_opengl_window.cpp | 2 +- .../_backup_service_interface_singleton.cpp | 2 +- code/ryzom/common/src/game_share/effect_families.cpp | 8 ++------ code/ryzom/common/src/game_share/scenario.cpp | 12 ++++++------ 5 files changed, 13 insertions(+), 23 deletions(-) diff --git a/code/nel/include/nel/misc/bitmap.h b/code/nel/include/nel/misc/bitmap.h index 06d8d2670..f689aad86 100644 --- a/code/nel/include/nel/misc/bitmap.h +++ b/code/nel/include/nel/misc/bitmap.h @@ -35,15 +35,9 @@ class IStream; //------------------ DDS STUFFS -------------------- #ifndef NL_MAKEFOURCC - #ifdef NL_LITTLE_ENDIAN - #define NL_MAKEFOURCC(ch0, ch1, ch2, ch3) \ - ((uint32)(uint8)(ch0) | ((uint32)(uint8)(ch1) << 8) | \ - ((uint32)(uint8)(ch2) << 16) | ((uint32)(uint8)(ch3) << 24 )) - #else - #define NL_MAKEFOURCC(ch0, ch1, ch2, ch3) \ - ((uint32)(uint8)(ch3) | ((uint32)(uint8)(ch2) << 8) | \ - ((uint32)(uint8)(ch1) << 16) | ((uint32)(uint8)(ch0) << 24 )) - #endif + #define NL_MAKEFOURCC(ch0, ch1, ch2, ch3) \ + ((uint32)(uint8)(ch0) | ((uint32)(uint8)(ch1) << 8) | \ + ((uint32)(uint8)(ch2) << 16) | ((uint32)(uint8)(ch3) << 24 )) #endif const uint32 DDS_HEADER = NL_MAKEFOURCC('D', 'D', 'S', ' '); diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp index a6264f303..48af6cf05 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -2537,7 +2537,7 @@ bool CDriverGL::isActive() XWindowAttributes attr; Status status = XGetWindowAttributes(_dpy, _win, &attr); - nlwarning("XGetWindowAttributes returned %d", status); + res = (status == 1); #endif // NL_OS_UNIX diff --git a/code/ryzom/common/src/game_share/_backup_service_interface_singleton.cpp b/code/ryzom/common/src/game_share/_backup_service_interface_singleton.cpp index cb7a58bd1..62b20dd6a 100644 --- a/code/ryzom/common/src/game_share/_backup_service_interface_singleton.cpp +++ b/code/ryzom/common/src/game_share/_backup_service_interface_singleton.cpp @@ -173,7 +173,7 @@ uint32 CBackupInterfaceSingleton::pushGenericAckCallback(NLMISC::CSmartPtr