summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2017-09-25 10:54:21 +0200
committerYehonal <yehonal.azeroth@gmail.com>2017-09-25 10:58:29 +0200
commitdcdddf658b2685187fe742732be3c9ea2e56add5 (patch)
treee112234a6c8d3d1b8e0f61eee1098103122c4f59 /modules
parente687d223ffedc34e77dd9c2cbc3d68606d81f331 (diff)
Fixed warnings when EXTRA_LOGS are off
Diffstat (limited to 'modules')
-rw-r--r--modules/worldengine/lib-collision/src/Management/MMapManager.cpp2
-rw-r--r--modules/worldengine/nucleus/src/Define.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/worldengine/lib-collision/src/Management/MMapManager.cpp b/modules/worldengine/lib-collision/src/Management/MMapManager.cpp
index 26fa9fb594..43355b834b 100644
--- a/modules/worldengine/lib-collision/src/Management/MMapManager.cpp
+++ b/modules/worldengine/lib-collision/src/Management/MMapManager.cpp
@@ -157,7 +157,6 @@ namespace MMAP
fclose(file);
- dtMeshHeader* header = (dtMeshHeader*)data;
dtTileRef tileRef = 0;
dtStatus stat;
@@ -172,6 +171,7 @@ namespace MMAP
mmap->mmapLoadedTiles.insert(std::pair<uint32, dtTileRef>(packedGridPos, tileRef));
++loadedTiles;
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
+ dtMeshHeader* header = (dtMeshHeader*)data;
sLog->outDetail("MMAP:loadMap: Loaded mmtile %03i[%02i,%02i] into %03i[%02i,%02i]", mapId, x, y, mapId, header->x, header->y);
#endif
return true;
diff --git a/modules/worldengine/nucleus/src/Define.h b/modules/worldengine/nucleus/src/Define.h
index 08bd88c272..3494531019 100644
--- a/modules/worldengine/nucleus/src/Define.h
+++ b/modules/worldengine/nucleus/src/Define.h
@@ -74,6 +74,8 @@
#define SIZEFMTD ACE_SIZE_T_FORMAT_SPECIFIER
+#define UNUSED(x) (void)(x)
+
typedef std::int64_t int64;
typedef std::int32_t int32;
typedef std::int16_t int16;