Changed: #1448 Compilation with CLang

hg/feature/gsoc2012-fabien
kervala 13 years ago
parent 425927cd50
commit d274c3d42e

@ -209,6 +209,8 @@ public:
{
#ifdef NL_DEBUG
std::swap(_DbgData, other._DbgData);
#else
nlunreferenced(other);
#endif
}
@ -225,6 +227,10 @@ public:
TBMSSerialInfo serialItem( bitpos, size, type, _DbgData->NextSymbol );
_DbgData->List.push_back( serialItem );
_DbgData->NextSymbol = NULL;
#else
nlunreferenced(bitpos);
nlunreferenced(size);
nlunreferenced(type);
#endif
}
@ -258,6 +264,10 @@ public:
nlwarning( "Missing reserve() corresponding to poke()" );
}
_DbgData->NextSymbol = NULL;
#else
nlunreferenced(bitpos);
nlunreferenced(size);
nlunreferenced(type);
#endif
}
@ -266,6 +276,8 @@ public:
{
#ifdef NL_DEBUG
_DbgData->NextSymbol = symbol;
#else
nlunreferenced(symbol);
#endif
}
@ -308,6 +320,8 @@ public:
}
//nlassert( bitpos < (*_List)[_CurrentBrowsedItem].BitPos ); // occurs if stream overflow
}
#else
nlunreferenced(bitpos);
#endif
*eventId = -1;
return std::string();

@ -717,11 +717,11 @@ class CAutoMutex
TMutex &_Mutex;
// forbeden copy or assignent
CAutoMutex(const CAutoMutex &other)
CAutoMutex(const CAutoMutex &/* other */)
{
}
CAutoMutex &operator = (const CAutoMutex &other)
CAutoMutex &operator = (const CAutoMutex &/* other */)
{
return *this;
}

@ -61,7 +61,7 @@ namespace NLMISC {
{
public:
/// Constructor. Must gives a blockMemory to ctor. NB: must gives a CBlockMemory<T, false> !!!
CSTLBlockAllocator(CBlockMemory<T, false> *bm)
CSTLBlockAllocator(CBlockMemory<T, false> */* bm */)
{
}
/// copy ctor

Loading…
Cancel
Save