Changed: GCC warnings

--HG--
branch : develop
This commit is contained in:
kervala 2016-12-11 14:23:58 +01:00
parent bd8cdb46e0
commit e4109490cd
2 changed files with 2 additions and 2 deletions

View file

@ -1395,7 +1395,7 @@ void CPrimitiveWorldImage::reaction (const CCollisionSurfaceDesc& surfaceDesc, c
void CPrimitiveWorldImage::setGlobalPosition (const UGlobalPosition& pos, CMoveContainer& container, CMovePrimitive &primitive, uint8 worldImage) void CPrimitiveWorldImage::setGlobalPosition (const UGlobalPosition& pos, CMoveContainer& container, CMovePrimitive &primitive, uint8 worldImage)
{ {
// Cast type // Cast type
nlassert (dynamic_cast<const CMoveContainer*>(&container)); nlassert (dynamic_cast<const CMoveContainer*>(&container) != NULL);
const CMoveContainer *cont=(const CMoveContainer*)&container; const CMoveContainer *cont=(const CMoveContainer*)&container;
if (!cont->getGlobalRetriever()) return; if (!cont->getGlobalRetriever()) return;

View file

@ -62,7 +62,7 @@ CGroupController::~CGroupController()
void CGroupController::addSource(CSourceCommon *source) void CGroupController::addSource(CSourceCommon *source)
{ {
nlassert(this); nlassert(this != NULL);
m_Sources.insert(source); m_Sources.insert(source);
increaseSources(); increaseSources();