Removed header dependency between Detour and Recast due to addition of rcIgnoreUnused. Added dtIgnoreUnused.
This commit is contained in:
parent
683acbb11c
commit
dc7e248de6
@ -32,6 +32,11 @@ feature to find minor members.
|
||||
/// @name General helper functions
|
||||
/// @{
|
||||
|
||||
/// Used to ignore a function parameter. VS complains about unused parameters
|
||||
/// and this silences the warning.
|
||||
/// @param [in] _ Unused parameter
|
||||
template<class T> void dtIgnoreUnused(const T&) { }
|
||||
|
||||
/// Swaps the values of the two parameters.
|
||||
/// @param[in,out] a Value A
|
||||
/// @param[in,out] b Value B
|
||||
|
@ -21,7 +21,6 @@
|
||||
#include "DetourStatus.h"
|
||||
#include "DetourAssert.h"
|
||||
#include "DetourTileCacheBuilder.h"
|
||||
#include "Recast.h"
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@ -2117,7 +2116,7 @@ dtStatus dtDecompressTileCacheLayer(dtTileCacheAlloc* alloc, dtTileCacheCompress
|
||||
|
||||
bool dtTileCacheHeaderSwapEndian(unsigned char* data, const int dataSize)
|
||||
{
|
||||
rcIgnoreUnused(dataSize);
|
||||
dtIgnoreUnused(dataSize);
|
||||
dtTileCacheLayerHeader* header = (dtTileCacheLayerHeader*)data;
|
||||
|
||||
int swappedMagic = DT_TILECACHE_MAGIC;
|
||||
|
Loading…
x
Reference in New Issue
Block a user